Class: Reve::Classes::WalletBalance
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
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#account_key ⇒ Object
readonly
Returns the value of attribute account_key.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WalletBalance
constructor
A new instance of WalletBalance.
Constructor Details
#initialize(elem) ⇒ WalletBalance
Returns a new instance of WalletBalance.
1302 1303 1304 1305 1306 |
# File 'lib/reve/classes.rb', line 1302 def initialize(elem) @account_id = elem['accountID'].to_i @account_key = elem['accountKey'] @balance = elem['balance'].to_f end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
1301 1302 1303 |
# File 'lib/reve/classes.rb', line 1301 def account_id @account_id end |
#account_key ⇒ Object (readonly)
Returns the value of attribute account_key.
1301 1302 1303 |
# File 'lib/reve/classes.rb', line 1301 def account_key @account_key end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
1301 1302 1303 |
# File 'lib/reve/classes.rb', line 1301 def balance @balance end |