Class: EveApp::XmlApi::Classes::Characters
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#alliance_id ⇒ Object
readonly
Returns the value of attribute alliance_id.
-
#alliance_name ⇒ Object
readonly
Returns the value of attribute alliance_name.
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
-
#corporation_name ⇒ Object
readonly
Returns the value of attribute corporation_name.
-
#faction_id ⇒ Object
readonly
Returns the value of attribute faction_id.
-
#faction_name ⇒ Object
readonly
Returns the value of attribute faction_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Characters
constructor
A new instance of Characters.
Constructor Details
#initialize(elem) ⇒ Characters
Returns a new instance of Characters.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/eve_app/xml_api/classes.rb', line 15 def initialize(elem) @id = elem['characterID'].to_i @name = elem['name'] @corporation_id = elem['corporationID'].to_i @corporation_name = elem['corporationName'] @alliance_id = elem['allianceID'].to_i @alliance_name = elem['allianceName'] @faction_id = elem['factionID'].to_i @faction_name = elem['factionName'] end |
Instance Attribute Details
#alliance_id ⇒ Object (readonly)
Returns the value of attribute alliance_id.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def alliance_id @alliance_id end |
#alliance_name ⇒ Object (readonly)
Returns the value of attribute alliance_name.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def alliance_name @alliance_name end |
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def corporation_id @corporation_id end |
#corporation_name ⇒ Object (readonly)
Returns the value of attribute corporation_name.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def corporation_name @corporation_name end |
#faction_id ⇒ Object (readonly)
Returns the value of attribute faction_id.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def faction_id @faction_id end |
#faction_name ⇒ Object (readonly)
Returns the value of attribute faction_name.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def faction_name @faction_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/eve_app/xml_api/classes.rb', line 13 def name @name end |