Class: EveApp::XmlApi::Classes::WalletJournal
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#arg_id ⇒ Object
readonly
Returns the value of attribute arg_id.
-
#arg_name ⇒ Object
readonly
Returns the value of attribute arg_name.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#owner1_id ⇒ Object
readonly
Returns the value of attribute owner1_id.
-
#owner1_name ⇒ Object
readonly
Returns the value of attribute owner1_name.
-
#owner1_type_id ⇒ Object
readonly
Returns the value of attribute owner1_type_id.
-
#owner2_id ⇒ Object
readonly
Returns the value of attribute owner2_id.
-
#owner2_name ⇒ Object
readonly
Returns the value of attribute owner2_name.
-
#owner2_type_id ⇒ Object
readonly
Returns the value of attribute owner2_type_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#ref_type_id ⇒ Object
readonly
Returns the value of attribute ref_type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WalletJournal
constructor
A new instance of WalletJournal.
Constructor Details
#initialize(elem) ⇒ WalletJournal
Returns a new instance of WalletJournal.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/eve_app/xml_api/classes.rb', line 84 def initialize(elem) @created_at = parse_time(elem['date']) @id = elem['refID'].to_i @ref_type_id = elem['refTypeID'].to_i @owner1_id = elem['ownerID1'].to_i if elem['ownerID1'] @owner1_name = elem['ownerName1'] @owner1_type = elem['owner1TypeID'] @owner2_id = elem['ownerID2'].to_i if elem['ownerID2'] @owner2_name = elem['ownerName2'] @owner2_type = elem['owner2TypeID'] @arg_name = elem['argName1'] @arg_id = elem['argID1'].to_i if elem['argID1'] @amount = elem['amount'].to_f @balance = elem['balance'].to_f @reason = elem['reason'] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def amount @amount end |
#arg_id ⇒ Object (readonly)
Returns the value of attribute arg_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def arg_id @arg_id end |
#arg_name ⇒ Object (readonly)
Returns the value of attribute arg_name.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def arg_name @arg_name end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def balance @balance end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def id @id end |
#owner1_id ⇒ Object (readonly)
Returns the value of attribute owner1_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner1_id @owner1_id end |
#owner1_name ⇒ Object (readonly)
Returns the value of attribute owner1_name.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner1_name @owner1_name end |
#owner1_type_id ⇒ Object (readonly)
Returns the value of attribute owner1_type_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner1_type_id @owner1_type_id end |
#owner2_id ⇒ Object (readonly)
Returns the value of attribute owner2_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner2_id @owner2_id end |
#owner2_name ⇒ Object (readonly)
Returns the value of attribute owner2_name.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner2_name @owner2_name end |
#owner2_type_id ⇒ Object (readonly)
Returns the value of attribute owner2_type_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def owner2_type_id @owner2_type_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def reason @reason end |
#ref_type_id ⇒ Object (readonly)
Returns the value of attribute ref_type_id.
81 82 83 |
# File 'lib/eve_app/xml_api/classes.rb', line 81 def ref_type_id @ref_type_id end |