salesking / sepa_king

Ruby gem for creating SEPA XML files
MIT License
150 stars 117 forks source link

sepa_king v0.1.0 error "undefined method `local_instrument=' for SEPA::DebtTransaction" #14

Closed asishallab closed 10 years ago

asishallab commented 10 years ago

Dear Salesking,

thank your for providing sepa_king.

Unfortunately upon setting the :local_instrument as provided in your readme I get the above error.

Am I doing something wrong here?

ledermann commented 10 years ago

It seems you are using a very old release of sepa_king, not the current v0.1.0. The class SEPA::DebtTransaction does not exist in the gem since release v0.0.4

asishallab commented 10 years ago

Oh! My bad. I am sorry. It was an old version indeed. I had forgotten to delete Gemfile.lock before calling bundle. Sorry about the fuzz…

ledermann commented 10 years ago

Sorry, the API of this gem is not very stable yet, we are still at major version zero.

Regarding the invalid account:

sepa = SEPA::DirectDebit.new(some_options)
if sepa.invalid?
  if sepa.account.invalid?
    puts sepa.account.errors.full_messages
  end
end