Class: EveApp::XmlApi::Classes::IndustryJob

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) ⇒ IndustryJob



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/eve_app/xml_api/classes.rb', line 186

def initialize(elem)
  @job_id = elem['jobID'].to_i    # "306488326"
  @installer_id = elem['installerID'].to_i    # "1663516939"
  @installer_name = elem['installerName']    # "GaIIente Slave"
  @facility_id = elem['facilityID'].to_i    # "1022215707239"
  @system_id = elem['solarSystemID'].to_i    # "30001363"
  @system_name = elem['solarSystemName']    # "Sobaseki"
  @station_id = elem['stationID'].to_i    # "1022182744039"
  @activity_id = elem['activityID'].to_i    # "1"
  @blueprint_id = elem['blueprintID'].to_i    # "1022215694764"
  @blueprint_type_id = elem['blueprintTypeID'].to_i    # "22545"
  @blueprint_type_name = elem['blueprintTypeName']    # "Hulk Blueprint"
  @blueprint_location_id = elem['blueprintLocationID'].to_i    # "1022215707239"
  @output_location_id = elem['outputLocationID'].to_i    # "1022215707239"
  @runs = elem['runs'].to_i    # "1"
  @cost = elem['cost'].to_f    # "8920512.00"
  @team_id = elem['teamID'].to_i    # "0"
  @licensed_runs = elem['licensedRuns'].to_i    # "1"
  @probability = elem['probability'].to_f    # "1"
  @product_type_id = elem['productTypeID'].to_i
  @product_type_name = elem['productTypeName']
  @status = elem['status'].to_i
  @duration = elem['timeInSeconds'].to_i
  @start_date = parse_time(elem['startDate'])
  @end_date = parse_time(elem['endDate'])
  @pause_date = parse_time(elem['pauseDate'])
  @completed_date = parse_time(elem['completedDate'])
  @completed_character_id = elem['completedCharacterID'].to_i
  @successful_runs = elem['successfulRuns'].to_i
end

Instance Attribute Details

#activity_idObject (readonly)

Returns the value of attribute activity_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def activity_id
  @activity_id
end

#blueprint_idObject (readonly)

Returns the value of attribute blueprint_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def blueprint_id
  @blueprint_id
end

#blueprint_location_idObject (readonly)

Returns the value of attribute blueprint_location_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def blueprint_location_id
  @blueprint_location_id
end

#blueprint_type_idObject (readonly)

Returns the value of attribute blueprint_type_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def blueprint_type_id
  @blueprint_type_id
end

#blueprint_type_nameObject (readonly)

Returns the value of attribute blueprint_type_name.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def blueprint_type_name
  @blueprint_type_name
end

#completed_character_idObject (readonly)

Returns the value of attribute completed_character_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def completed_character_id
  @completed_character_id
end

#completed_dateObject (readonly)

Returns the value of attribute completed_date.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def completed_date
  @completed_date
end

#costObject (readonly)

Returns the value of attribute cost.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def cost
  @cost
end

#durationObject (readonly)

Returns the value of attribute duration.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def duration
  @duration
end

#end_dateObject (readonly)

Returns the value of attribute end_date.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def end_date
  @end_date
end

#facility_idObject (readonly)

Returns the value of attribute facility_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def facility_id
  @facility_id
end

#installer_idObject (readonly)

Returns the value of attribute installer_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def installer_id
  @installer_id
end

#installer_nameObject (readonly)

Returns the value of attribute installer_name.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def installer_name
  @installer_name
end

#job_idObject (readonly)

Returns the value of attribute job_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def job_id
  @job_id
end

#licensed_runsObject (readonly)

Returns the value of attribute licensed_runs.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def licensed_runs
  @licensed_runs
end

#output_location_idObject (readonly)

Returns the value of attribute output_location_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def output_location_id
  @output_location_id
end

#pause_dateObject (readonly)

Returns the value of attribute pause_date.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def pause_date
  @pause_date
end

#probabilityObject (readonly)

Returns the value of attribute probability.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def probability
  @probability
end

#product_type_idObject (readonly)

Returns the value of attribute product_type_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def product_type_id
  @product_type_id
end

#product_type_nameObject (readonly)

Returns the value of attribute product_type_name.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def product_type_name
  @product_type_name
end

#runsObject (readonly)

Returns the value of attribute runs.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def runs
  @runs
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def start_date
  @start_date
end

#station_idObject (readonly)

Returns the value of attribute station_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def station_id
  @station_id
end

#statusObject (readonly)

Returns the value of attribute status.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def status
  @status
end

#successful_runsObject (readonly)

Returns the value of attribute successful_runs.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def successful_runs
  @successful_runs
end

#system_idObject (readonly)

Returns the value of attribute system_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def system_id
  @system_id
end

#system_nameObject (readonly)

Returns the value of attribute system_name.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def system_name
  @system_name
end

#team_idObject (readonly)

Returns the value of attribute team_id.



180
181
182
# File 'lib/eve_app/xml_api/classes.rb', line 180

def team_id
  @team_id
end