Class: Signupto::Action::Balance

Inherits:
Base
  • Object
show all
Defined in:
lib/signupto/action/balance.rb

Instance Method Summary collapse

Methods inherited from Base

#to_s

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()
  if .is_a?(Account)
    if super(.apihash, .customer_number)
      payload = set_payload()
      run_action(payload)
    end
  else
    raise "ERROR"
  end
end