Class: Reve::Classes::WalletBalance

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Overview

Corporation or Character WalletBalance for Reve::API#personal_wallet_transactions and Reve::API#corporate_wallet_balance Attributes

  • account_id ( Fixnum ) - ID of the account

  • account_key ( String ) - Account key

  • balance ( Float ) - Balance of the wallet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WalletBalance

Returns a new instance of WalletBalance.



1431
1432
1433
1434
1435
# File 'lib/reve/classes.rb', line 1431

def initialize(elem)
  @account_id  = elem['accountID'].to_i
  @account_key = elem['accountKey']
  @balance     = elem['balance'].to_f
end

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id.



1430
1431
1432
# File 'lib/reve/classes.rb', line 1430

def 
  @account_id
end

#account_keyObject (readonly)

Returns the value of attribute account_key.



1430
1431
1432
# File 'lib/reve/classes.rb', line 1430

def 
  @account_key
end

#balanceObject (readonly)

Returns the value of attribute balance.



1430
1431
1432
# File 'lib/reve/classes.rb', line 1430

def balance
  @balance
end