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)
-
- (Object) corporation_id
readonly
Returns the value of attribute corporation_id.
-
- (Object) corporation_name
readonly
Returns the value of attribute corporation_name.
-
- (Object) id
readonly
Returns the value of attribute id.
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) system_id
readonly
Returns the value of attribute system_id.
-
- (Object) type_id
readonly
Returns the value of attribute type_id.
Instance Method Summary (collapse)
-
- (ConqurableStation) initialize(elem)
constructor
:nodoc:.
Constructor Details
- (ConqurableStation) initialize(elem)
:nodoc:
710 711 712 713 714 715 716 717 |
# File 'lib/reve/classes.rb', line 710 def initialize(elem) #:nodoc: @id = elem['stationID'].to_i @name = elem['stationName'] @type_id = elem['stationTypeID'].to_i @corporation_id = elem['corporationID'].to_i @corporation_name = elem['corporationName'] @system_id = elem['solarSystemID'].to_i end |
Instance Attribute Details
- (Object) corporation_id (readonly)
Returns the value of attribute corporation_id
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def corporation_id @corporation_id end |
- (Object) corporation_name (readonly)
Returns the value of attribute corporation_name
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def corporation_name @corporation_name end |
- (Object) id (readonly)
Returns the value of attribute id
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def id @id end |
- (Object) name (readonly)
Returns the value of attribute name
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def name @name end |
- (Object) system_id (readonly)
Returns the value of attribute system_id
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def system_id @system_id end |
- (Object) type_id (readonly)
Returns the value of attribute type_id
709 710 711 |
# File 'lib/reve/classes.rb', line 709 def type_id @type_id end |