Class: EveApp::XmlApi::Classes::AccountBalance

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) ⇒ 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

#balanceObject (readonly)

Returns the value of attribute balance.



28
29
30
# File 'lib/eve_app/xml_api/classes.rb', line 28

def balance
  @balance
end

#idObject (readonly)

Returns the value of attribute id.



28
29
30
# File 'lib/eve_app/xml_api/classes.rb', line 28

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key.



28
29
30
# File 'lib/eve_app/xml_api/classes.rb', line 28

def key
  @key
end