Class: EveApp::XmlApi::Classes::CorporationSheet
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#alliance_id ⇒ Object
readonly
Returns the value of attribute alliance_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(xml) ⇒ CorporationSheet
constructor
A new instance of CorporationSheet.
Constructor Details
#initialize(xml) ⇒ CorporationSheet
Returns a new instance of CorporationSheet.
50 51 52 53 54 |
# File 'lib/eve_app/xml_api/classes.rb', line 50 def initialize(xml) @id = xml.search('//result/corporationID[1]').text.to_i @name = xml.search('//result/corporationName[1]').text @alliance_id = xml.search('//result/allianceID[1]').text.to_i end |
Instance Attribute Details
#alliance_id ⇒ Object (readonly)
Returns the value of attribute alliance_id.
48 49 50 |
# File 'lib/eve_app/xml_api/classes.rb', line 48 def alliance_id @alliance_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
48 49 50 |
# File 'lib/eve_app/xml_api/classes.rb', line 48 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/eve_app/xml_api/classes.rb', line 48 def name @name end |