Class: Reve::Classes::Starbase
Overview
Used for a list of Starbases, Reve::API#starbases Attributes
-
type_id ( Fixnum ) - Type of Starbase (Refer to CCP database dump invtypes)
-
id ( Fixnum ) - ID of the Starbase
-
system_id ( Fixnum ) - ID of the System where the Starbase is
-
moon_id ( Fixnum ) - ID of the Moon where the Starbase is
-
state ( Fixnum ) - Mode of the POS. See Known POS States, below, see: wiki.eve-id.net/APIv2_Corp_StarbaseList_XML
-
state_timestamp ( Time ) - Depends on the state, for example cycle time or Reinforced until
-
online_timestamp ( Time ) - Since when the starbase is online
See Also: StarbaseFuel, Reve::API#starbases, Reve::API#starbase_fuel
Instance Attribute Summary collapse
-
#id ⇒ Object
(also: #item_id)
readonly
Returns the value of attribute id.
-
#moon_id ⇒ Object
readonly
Returns the value of attribute moon_id.
-
#online_timestamp ⇒ Object
readonly
Returns the value of attribute online_timestamp.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_timestamp ⇒ Object
readonly
Returns the value of attribute state_timestamp.
-
#system_id ⇒ Object
(also: #location_id)
readonly
Returns the value of attribute system_id.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Starbase
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ Starbase
:nodoc:
1358 1359 1360 1361 1362 1363 1364 1365 1366 |
# File 'lib/reve/classes.rb', line 1358 def initialize(elem) #:nodoc: @type_id = elem['typeID'].to_i @id = elem['itemID'].to_i @system_id = elem['locationID'].to_i @moon_id = elem['moonID'].to_i @state = elem['state'].to_i @state_timestamp = elem['stateTimestamp'].to_time @online_timestamp = elem['onlineTimestamp'].to_time end |
Instance Attribute Details
#id ⇒ Object (readonly) Also known as: item_id
Returns the value of attribute id.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def id @id end |
#moon_id ⇒ Object (readonly)
Returns the value of attribute moon_id.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def moon_id @moon_id end |
#online_timestamp ⇒ Object (readonly)
Returns the value of attribute online_timestamp.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def @online_timestamp end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def state @state end |
#state_timestamp ⇒ Object (readonly)
Returns the value of attribute state_timestamp.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def @state_timestamp end |
#system_id ⇒ Object (readonly) Also known as: location_id
Returns the value of attribute system_id.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def system_id @system_id end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def type_id @type_id end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
1355 1356 1357 |
# File 'lib/reve/classes.rb', line 1355 def type_name @type_name end |