Class: PFS::Resources::Accounts::AccountInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/pfs/resources/accounts/account_info.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

map

Constructor Details

#initialize(response, attributes = {}) ⇒ AccountInfo

Returns a new instance of AccountInfo.



31
32
33
34
# File 'lib/pfs/resources/accounts/account_info.rb', line 31

def initialize(response, attributes = {})
  super(response, attributes)
  @balance = Balance.new(response, attributes[:balance])
end

Instance Attribute Details

#balanceObject (readonly)

Returns the value of attribute balance.



7
8
9
# File 'lib/pfs/resources/accounts/account_info.rb', line 7

def balance
  @balance
end