Class: EveApp::XmlApi::Classes::AccountBalance
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(elem) ⇒ AccountBalance
constructor
A new instance of AccountBalance.
Constructor Details
#initialize(elem) ⇒ AccountBalance
Returns a new instance of AccountBalance.
30 31 32 33 34 |
# File 'lib/eve_app/xml_api/classes.rb', line 30 def initialize(elem) @id = elem['accountID'].to_i @key = elem['accountKey'].to_i @balance = elem['balance'].to_f end |
Instance Attribute Details
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
28 29 30 |
# File 'lib/eve_app/xml_api/classes.rb', line 28 def balance @balance end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
28 29 30 |
# File 'lib/eve_app/xml_api/classes.rb', line 28 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
28 29 30 |
# File 'lib/eve_app/xml_api/classes.rb', line 28 def key @key end |