Class: Signupto::Action::Balance
- Defined in:
- lib/signupto/action/balance.rb
Instance Method Summary collapse
-
#initialize(account) ⇒ Balance
constructor
A new instance of Balance.
Methods inherited from Base
Constructor Details
#initialize(account) ⇒ Balance
Returns a new instance of Balance.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/signupto/action/balance.rb', line 5 def initialize(account) if account.is_a?(Account) if super(account.apihash, account.customer_number) payload = set_payload() run_action(payload) end else raise "ERROR" end end |