Class: EveApp::XmlApi::Classes::IndustryJob
- Defined in:
- lib/eve_app/xml_api/classes.rb
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
readonly
Returns the value of attribute activity_id.
-
#blueprint_id ⇒ Object
readonly
Returns the value of attribute blueprint_id.
-
#blueprint_location_id ⇒ Object
readonly
Returns the value of attribute blueprint_location_id.
-
#blueprint_type_id ⇒ Object
readonly
Returns the value of attribute blueprint_type_id.
-
#blueprint_type_name ⇒ Object
readonly
Returns the value of attribute blueprint_type_name.
-
#completed_character_id ⇒ Object
readonly
Returns the value of attribute completed_character_id.
-
#completed_date ⇒ Object
readonly
Returns the value of attribute completed_date.
-
#cost ⇒ Object
readonly
Returns the value of attribute cost.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#facility_id ⇒ Object
readonly
Returns the value of attribute facility_id.
-
#installer_id ⇒ Object
readonly
Returns the value of attribute installer_id.
-
#installer_name ⇒ Object
readonly
Returns the value of attribute installer_name.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#licensed_runs ⇒ Object
readonly
Returns the value of attribute licensed_runs.
-
#output_location_id ⇒ Object
readonly
Returns the value of attribute output_location_id.
-
#pause_date ⇒ Object
readonly
Returns the value of attribute pause_date.
-
#probability ⇒ Object
readonly
Returns the value of attribute probability.
-
#product_type_id ⇒ Object
readonly
Returns the value of attribute product_type_id.
-
#product_type_name ⇒ Object
readonly
Returns the value of attribute product_type_name.
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#station_id ⇒ Object
readonly
Returns the value of attribute station_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#successful_runs ⇒ Object
readonly
Returns the value of attribute successful_runs.
-
#system_id ⇒ Object
readonly
Returns the value of attribute system_id.
-
#system_name ⇒ Object
readonly
Returns the value of attribute system_name.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ IndustryJob
constructor
A new instance of IndustryJob.
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_id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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_date ⇒ Object (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 |
#cost ⇒ Object (readonly)
Returns the value of attribute cost.
180 181 182 |
# File 'lib/eve_app/xml_api/classes.rb', line 180 def cost @cost end |
#duration ⇒ Object (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_date ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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_runs ⇒ Object (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_id ⇒ Object (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_date ⇒ Object (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 |
#probability ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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 |
#runs ⇒ Object (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_date ⇒ Object (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_id ⇒ Object (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 |
#status ⇒ Object (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_runs ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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 |