Class: Reve::Classes::IndustryJob
Overview
Used in Reve::API#personal_industry_jobs and Reve::API#corporate_industry_jobs. PersonalIndustryJob and CorporateIndustryJob subclass this for more logical containment. These attributes should be largely self-explanatory. There are so many of them that it’s soulcrushing to document each one! (Sorry ;) For further information please see: wiki.eve-dev.net/APIv2_Char_IndustryJobs_XML especially about completed_status
and completed
Direct Known Subclasses
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
readonly
Returns the value of attribute activity_id.
-
#assembly_line_id ⇒ Object
readonly
Returns the value of attribute assembly_line_id.
-
#begin_production_at ⇒ Object
readonly
Returns the value of attribute begin_production_at.
-
#char_material_multiplier ⇒ Object
readonly
Returns the value of attribute char_material_multiplier.
-
#char_time_multiplier ⇒ Object
readonly
Returns the value of attribute char_time_multiplier.
-
#completed ⇒ Object
readonly
Returns the value of attribute completed.
-
#completed_status ⇒ Object
readonly
Returns the value of attribute completed_status.
-
#completed_successfully ⇒ Object
readonly
Returns the value of attribute completed_successfully.
-
#container_id ⇒ Object
readonly
Returns the value of attribute container_id.
-
#container_location_id ⇒ Object
readonly
Returns the value of attribute container_location_id.
-
#container_type_id ⇒ Object
readonly
Returns the value of attribute container_type_id.
-
#end_production_at ⇒ Object
readonly
Returns the value of attribute end_production_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#installed_at ⇒ Object
readonly
Returns the value of attribute installed_at.
-
#installed_item_copy ⇒ Object
readonly
Returns the value of attribute installed_item_copy.
-
#installed_item_flag ⇒ Object
readonly
Returns the value of attribute installed_item_flag.
-
#installed_item_id ⇒ Object
readonly
Returns the value of attribute installed_item_id.
-
#installed_item_licensed_production_runs_remaining ⇒ Object
readonly
Returns the value of attribute installed_item_licensed_production_runs_remaining.
-
#installed_item_location_id ⇒ Object
readonly
Returns the value of attribute installed_item_location_id.
-
#installed_item_material_level ⇒ Object
readonly
Returns the value of attribute installed_item_material_level.
-
#installed_item_productivity_level ⇒ Object
readonly
Returns the value of attribute installed_item_productivity_level.
-
#installed_item_quantity ⇒ Object
readonly
Returns the value of attribute installed_item_quantity.
-
#installed_item_type_id ⇒ Object
readonly
Returns the value of attribute installed_item_type_id.
-
#installed_system_id ⇒ Object
readonly
Returns the value of attribute installed_system_id.
-
#installer_id ⇒ Object
readonly
Returns the value of attribute installer_id.
-
#licensed_production_runs ⇒ Object
readonly
Returns the value of attribute licensed_production_runs.
-
#material_multiplier ⇒ Object
readonly
Returns the value of attribute material_multiplier.
-
#output_flag ⇒ Object
readonly
Returns the value of attribute output_flag.
-
#output_location_id ⇒ Object
readonly
Returns the value of attribute output_location_id.
-
#output_type_id ⇒ Object
readonly
Returns the value of attribute output_type_id.
-
#pause_production_time ⇒ Object
readonly
Returns the value of attribute pause_production_time.
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
-
#time_multiplier ⇒ Object
readonly
Returns the value of attribute time_multiplier.
Instance Method Summary collapse
-
#initialize(elem) ⇒ IndustryJob
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ IndustryJob
:nodoc:
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/reve/classes.rb', line 1006 def initialize(elem) #:nodoc: @id = elem['jobID'].to_i; @assembly_line_id = elem['assemblyLineID'].to_i ; @container_id = elem['containerID'].to_i @installed_item_id = elem['installedItemID'].to_i ; @installed_item_location_id = elem['installedItemLocationID'].to_i @installed_item_quantity = elem['installedItemQuantity'].to_i @installed_item_productivity_level = elem['installedItemProductivityLevel'].to_i @installed_item_material_level = elem['installedItemMaterialLevel'].to_i @installed_item_licensed_production_runs_remaining = elem['installedItemLicensedProductionRunsRemaining'].to_i @output_location_id = elem['outputLocationID'].to_i ; @installer_id = elem['installerID'].to_i; @runs = elem['runs'].to_i @licensed_production_runs = elem['licensedProductionRuns'].to_i ; @installed_system_id = elem['installedSolarSystemID'].to_i @container_location_id = elem['containerLocationID'].to_i ; @material_multiplier = elem['materialMultiplier'].to_f @char_material_multiplier = elem['charMaterialMultiplier'].to_f; @time_multiplier = elem['timeMultiplier'].to_f @char_time_multiplier = elem['charTimeMultiplier'].to_f ; @installed_item_type_id = elem['installedItemTypeID'].to_i @output_type_id = elem['outputTypeID'].to_i ; @container_type_id = elem['containerTypeID'].to_i @installed_item_copy = (elem['installedItemCopy'] == "1") ; @completed = (elem['completed'] == "1") @completed_successfully = (elem['completedSuccessfully'] == "1") @installed_item_flag = elem['installedItemFlag'].to_i ; @output_flag = elem['outputFlag'].to_i @activity_id = elem['activityID'].to_i ; @completed_status = elem['completedStatus'].to_i @installed_at = elem['installTime'].to_time ; @begin_production_at = elem['beginProductionTime'].to_time @end_production_at = elem['endProductionTime'].to_time @pause_production_time = elem['pauseProductionTime'].to_time end |
Instance Attribute Details
#activity_id ⇒ Object (readonly)
Returns the value of attribute activity_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def activity_id @activity_id end |
#assembly_line_id ⇒ Object (readonly)
Returns the value of attribute assembly_line_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def assembly_line_id @assembly_line_id end |
#begin_production_at ⇒ Object (readonly)
Returns the value of attribute begin_production_at.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def begin_production_at @begin_production_at end |
#char_material_multiplier ⇒ Object (readonly)
Returns the value of attribute char_material_multiplier.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def char_material_multiplier @char_material_multiplier end |
#char_time_multiplier ⇒ Object (readonly)
Returns the value of attribute char_time_multiplier.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def char_time_multiplier @char_time_multiplier end |
#completed ⇒ Object (readonly)
Returns the value of attribute completed.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def completed @completed end |
#completed_status ⇒ Object (readonly)
Returns the value of attribute completed_status.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def completed_status @completed_status end |
#completed_successfully ⇒ Object (readonly)
Returns the value of attribute completed_successfully.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def completed_successfully @completed_successfully end |
#container_id ⇒ Object (readonly)
Returns the value of attribute container_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def container_id @container_id end |
#container_location_id ⇒ Object (readonly)
Returns the value of attribute container_location_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def container_location_id @container_location_id end |
#container_type_id ⇒ Object (readonly)
Returns the value of attribute container_type_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def container_type_id @container_type_id end |
#end_production_at ⇒ Object (readonly)
Returns the value of attribute end_production_at.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def end_production_at @end_production_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def id @id end |
#installed_at ⇒ Object (readonly)
Returns the value of attribute installed_at.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_at @installed_at end |
#installed_item_copy ⇒ Object (readonly)
Returns the value of attribute installed_item_copy.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_copy @installed_item_copy end |
#installed_item_flag ⇒ Object (readonly)
Returns the value of attribute installed_item_flag.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_flag @installed_item_flag end |
#installed_item_id ⇒ Object (readonly)
Returns the value of attribute installed_item_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_id @installed_item_id end |
#installed_item_licensed_production_runs_remaining ⇒ Object (readonly)
Returns the value of attribute installed_item_licensed_production_runs_remaining.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_licensed_production_runs_remaining @installed_item_licensed_production_runs_remaining end |
#installed_item_location_id ⇒ Object (readonly)
Returns the value of attribute installed_item_location_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_location_id @installed_item_location_id end |
#installed_item_material_level ⇒ Object (readonly)
Returns the value of attribute installed_item_material_level.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_material_level @installed_item_material_level end |
#installed_item_productivity_level ⇒ Object (readonly)
Returns the value of attribute installed_item_productivity_level.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_productivity_level @installed_item_productivity_level end |
#installed_item_quantity ⇒ Object (readonly)
Returns the value of attribute installed_item_quantity.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_quantity @installed_item_quantity end |
#installed_item_type_id ⇒ Object (readonly)
Returns the value of attribute installed_item_type_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_item_type_id @installed_item_type_id end |
#installed_system_id ⇒ Object (readonly)
Returns the value of attribute installed_system_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installed_system_id @installed_system_id end |
#installer_id ⇒ Object (readonly)
Returns the value of attribute installer_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def installer_id @installer_id end |
#licensed_production_runs ⇒ Object (readonly)
Returns the value of attribute licensed_production_runs.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def licensed_production_runs @licensed_production_runs end |
#material_multiplier ⇒ Object (readonly)
Returns the value of attribute material_multiplier.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def material_multiplier @material_multiplier end |
#output_flag ⇒ Object (readonly)
Returns the value of attribute output_flag.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def output_flag @output_flag end |
#output_location_id ⇒ Object (readonly)
Returns the value of attribute output_location_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def output_location_id @output_location_id end |
#output_type_id ⇒ Object (readonly)
Returns the value of attribute output_type_id.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def output_type_id @output_type_id end |
#pause_production_time ⇒ Object (readonly)
Returns the value of attribute pause_production_time.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def pause_production_time @pause_production_time end |
#runs ⇒ Object (readonly)
Returns the value of attribute runs.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def runs @runs end |
#time_multiplier ⇒ Object (readonly)
Returns the value of attribute time_multiplier.
998 999 1000 |
# File 'lib/reve/classes.rb', line 998 def time_multiplier @time_multiplier end |