Class: Reve::Classes::StarbaseFuel

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

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

#quantityObject (readonly)

Returns the value of attribute quantity.



1285
1286
1287
# File 'lib/reve/classes.rb', line 1285

def quantity
  @quantity
end

#starbase_idObject

Returns the value of attribute starbase_id.



1286
1287
1288
# File 'lib/reve/classes.rb', line 1286

def starbase_id
  @starbase_id
end

#type_idObject (readonly)

Returns the value of attribute type_id.



1285
1286
1287
# File 'lib/reve/classes.rb', line 1285

def type_id
  @type_id
end