Class: Reve::Classes::StarbaseFuel
Overview
Used for the fuel status of a Starbase. See Reve::API#starbase_fuel starbase_id is set in the Reve::API#starbase_fuel method and not here Attributes
-
type_id ( Fixnum ) - Type of fuel in the Starbase (Refer to CCP database dump invtypes)
-
quantity ( Fixnum ) - How much of the fuel is in the Starbase
-
starbase_id ( Fixnum ) - ID of the Starbase
See Also: Starbase, Reve::API#starbase_fuel, Reve::API#starbases
Instance Attribute Summary collapse
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#starbase_id ⇒ Object
Returns the value of attribute starbase_id.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ StarbaseFuel
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ StarbaseFuel
:nodoc:
1287 1288 1289 1290 |
# File 'lib/reve/classes.rb', line 1287 def initialize(elem) #:nodoc: @type_id = elem['typeID'].to_i @quantity = elem['quantity'].to_i end |
Instance Attribute Details
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
1285 1286 1287 |
# File 'lib/reve/classes.rb', line 1285 def quantity @quantity end |
#starbase_id ⇒ Object
Returns the value of attribute starbase_id.
1286 1287 1288 |
# File 'lib/reve/classes.rb', line 1286 def starbase_id @starbase_id end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
1285 1286 1287 |
# File 'lib/reve/classes.rb', line 1285 def type_id @type_id end |