Class: EveApp::XmlApi::Classes::WalletJournal

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_app/xml_api/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (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_idObject (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_nameObject (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

#balanceObject (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_atObject (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

#idObject (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_idObject (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_nameObject (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_idObject (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_idObject (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_nameObject (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_idObject (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

#reasonObject (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_idObject (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