Class: EveApp::XmlApi::Classes::Blueprint
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
-
#item_id ⇒ Object
readonly
Returns the value of attribute item_id.
-
#location_id ⇒ Object
readonly
Returns the value of attribute location_id.
-
#me ⇒ Object
readonly
Returns the value of attribute me.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
-
#te ⇒ Object
readonly
Returns the value of attribute te.
-
#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) ⇒ Blueprint
constructor
A new instance of Blueprint.
Constructor Details
#initialize(elem) ⇒ Blueprint
Returns a new instance of Blueprint.
105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/eve_app/xml_api/classes.rb', line 105 def initialize(elem) @item_id = elem['itemID'].to_i @location_id = elem['locationID'] @type_id = elem['typeID'].to_i @type_name = elem['typeName'] @flag = elem['flagID'].to_i @quantity = elem['quantity'].to_i @te = elem['timeEfficiency'].to_i @me = elem['materialEfficiency'].to_i @runs = elem['runs'].to_i end |
Instance Attribute Details
#flag ⇒ Object (readonly)
Returns the value of attribute flag.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def flag @flag end |
#item_id ⇒ Object (readonly)
Returns the value of attribute item_id.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def item_id @item_id end |
#location_id ⇒ Object (readonly)
Returns the value of attribute location_id.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def location_id @location_id end |
#me ⇒ Object (readonly)
Returns the value of attribute me.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def me @me end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def quantity @quantity end |
#runs ⇒ Object (readonly)
Returns the value of attribute runs.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def runs @runs end |
#te ⇒ Object (readonly)
Returns the value of attribute te.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def te @te end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def type_id @type_id end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
103 104 105 |
# File 'lib/eve_app/xml_api/classes.rb', line 103 def type_name @type_name end |