Skip to content

Instantly share code, notes, and snippets.

@gbelote
Created April 17, 2013 19:04
Show Gist options
  • Save gbelote/5406856 to your computer and use it in GitHub Desktop.
Save gbelote/5406856 to your computer and use it in GitHub Desktop.
balanced_uri = "..." # stored when bank account created. this has also been verified.
account = Balanced::BankAccount.find balanced_uri
account.debit( appears_on_statement_as: "Test Balanced Debit", amount: 1, description: "This is a test debit in the console!" )
NoMethodError: undefined method `debit' for nil:NilClass
from /Users/gbelote/.rvm/gems/ruby-1.9.3-p194@wefunder/bundler/gems/balanced-ruby-3a9c66ae89b2/lib/balanced/resources/bank_account.rb:43:in `debit'
from (irb):3
... (snip: more stack trace from "rails c") ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment