Class: EveApp::XmlApi::Classes::Blueprint

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_app/xml_api/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#flagObject (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_idObject (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_idObject (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

#meObject (readonly)

Returns the value of attribute me.



103
104
105
# File 'lib/eve_app/xml_api/classes.rb', line 103

def me
  @me
end

#quantityObject (readonly)

Returns the value of attribute quantity.



103
104
105
# File 'lib/eve_app/xml_api/classes.rb', line 103

def quantity
  @quantity
end

#runsObject (readonly)

Returns the value of attribute runs.



103
104
105
# File 'lib/eve_app/xml_api/classes.rb', line 103

def runs
  @runs
end

#teObject (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_idObject (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_nameObject (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