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)
-
type_name ( String ) - Name of the type of Starbase
-
id ( Fixnum ) - ID of the Starbase
-
system_id ( Fixnum ) - ID of the System where the Starbase is
-
system_name ( Starbase ) - Name of the System where the Starbase is
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.
-
#system_id ⇒ Object
(also: #location_id)
readonly
Returns the value of attribute system_id.
-
#system_name ⇒ Object
(also: #location_name)
readonly
Returns the value of attribute system_name.
-
#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:
1268 1269 1270 1271 1272 1273 1274 |
# File 'lib/reve/classes.rb', line 1268 def initialize(elem) #:nodoc: @type_id = elem['typeID'].to_i @type_name = elem['typeName'] @id = elem['itemID'].to_i @system_id = elem['locationID'].to_i @system_name = elem['locationName'] end |
Instance Attribute Details
#id ⇒ Object (readonly) Also known as: item_id
Returns the value of attribute id.
1264 1265 1266 |
# File 'lib/reve/classes.rb', line 1264 def id @id end |
#system_id ⇒ Object (readonly) Also known as: location_id
Returns the value of attribute system_id.
1264 1265 1266 |
# File 'lib/reve/classes.rb', line 1264 def system_id @system_id end |
#system_name ⇒ Object (readonly) Also known as: location_name
Returns the value of attribute system_name.
1264 1265 1266 |
# File 'lib/reve/classes.rb', line 1264 def system_name @system_name end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
1264 1265 1266 |
# File 'lib/reve/classes.rb', line 1264 def type_id @type_id end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
1264 1265 1266 |
# File 'lib/reve/classes.rb', line 1264 def type_name @type_name end |