Class: Reve::Classes::ConqurableStation
Overview
Holds the result of the Reve::API#conqurable_stations call. Attributes
-
id ( Fixnum ) - ID of the ConqurableStation
-
name ( String ) - Name of the ConqurableStation
-
type_id ( Fixnum ) - What kind of ConqurableStation Station it is (Refer to CCP database dump invtypes).
-
system_id ( Fixnum ) - ID of the system where the ConqurableStation is located.
-
corporation_id ( Fixnum ) - ID of the Corporation that owns the ConqurableStation
-
corporation_name ( String ) - Name of the Corporation that owns the ConqurableStation.
See Also: Sovereignty, Reve::API#conqurable_stations, Reve::API#sovereignty, Reve::API#corporation_sheet, CorporationSheet
Direct Known Subclasses
Instance Attribute Summary collapse
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
-
#corporation_name ⇒ Object
readonly
Returns the value of attribute corporation_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#system_id ⇒ Object
readonly
Returns the value of attribute system_id.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ConqurableStation
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ ConqurableStation
:nodoc:
666 667 668 669 670 671 672 673 674 |
# File 'lib/reve/classes.rb', line 666 def initialize(elem) #:nodoc: @id = elem['stationID'].to_i @name = elem['stationName'] @type_id = elem['stationTypeID'].to_i @system_id = elem['solarSystemID'].to_i @corporation_id = elem['corporationID'].to_i @corporation_name = elem['corporationName'] @system_id = elem['solarSystemID'].to_i end |
Instance Attribute Details
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def corporation_id @corporation_id end |
#corporation_name ⇒ Object (readonly)
Returns the value of attribute corporation_name.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def corporation_name @corporation_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def name @name end |
#system_id ⇒ Object (readonly)
Returns the value of attribute system_id.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def system_id @system_id end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
665 666 667 |
# File 'lib/reve/classes.rb', line 665 def type_id @type_id end |