Class: Reve::Classes::StarbaseFuel
Instance Attribute Summary collapse
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#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:
1369 1370 1371 1372 |
# File 'lib/reve/classes.rb', line 1369 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.
1368 1369 1370 |
# File 'lib/reve/classes.rb', line 1368 def quantity @quantity end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
1368 1369 1370 |
# File 'lib/reve/classes.rb', line 1368 def type_id @type_id end |