Class: Reve::Classes::IndustryJob

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

CorporateIndustryJob, PersonalIndustryJob

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ IndustryJob

:nodoc:



1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
# File 'lib/reve/classes.rb', line 1095

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['installedInSolarSystemID'].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_idObject (readonly)

Returns the value of attribute activity_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def activity_id
  @activity_id
end

#assembly_line_idObject (readonly)

Returns the value of attribute assembly_line_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def assembly_line_id
  @assembly_line_id
end

#begin_production_atObject (readonly)

Returns the value of attribute begin_production_at.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def begin_production_at
  @begin_production_at
end

#char_material_multiplierObject (readonly)

Returns the value of attribute char_material_multiplier.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def char_material_multiplier
  @char_material_multiplier
end

#char_time_multiplierObject (readonly)

Returns the value of attribute char_time_multiplier.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def char_time_multiplier
  @char_time_multiplier
end

#completedObject (readonly)

Returns the value of attribute completed.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def completed
  @completed
end

#completed_statusObject (readonly)

Returns the value of attribute completed_status.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def completed_status
  @completed_status
end

#completed_successfullyObject (readonly)

Returns the value of attribute completed_successfully.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def completed_successfully
  @completed_successfully
end

#container_idObject (readonly)

Returns the value of attribute container_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def container_id
  @container_id
end

#container_location_idObject (readonly)

Returns the value of attribute container_location_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def container_location_id
  @container_location_id
end

#container_type_idObject (readonly)

Returns the value of attribute container_type_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def container_type_id
  @container_type_id
end

#end_production_atObject (readonly)

Returns the value of attribute end_production_at.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def end_production_at
  @end_production_at
end

#idObject (readonly)

Returns the value of attribute id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def id
  @id
end

#installed_atObject (readonly)

Returns the value of attribute installed_at.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_at
  @installed_at
end

#installed_item_copyObject (readonly)

Returns the value of attribute installed_item_copy.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_copy
  @installed_item_copy
end

#installed_item_flagObject (readonly)

Returns the value of attribute installed_item_flag.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_flag
  @installed_item_flag
end

#installed_item_idObject (readonly)

Returns the value of attribute installed_item_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_id
  @installed_item_id
end

#installed_item_licensed_production_runs_remainingObject (readonly)

Returns the value of attribute installed_item_licensed_production_runs_remaining.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_licensed_production_runs_remaining
  @installed_item_licensed_production_runs_remaining
end

#installed_item_location_idObject (readonly)

Returns the value of attribute installed_item_location_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_location_id
  @installed_item_location_id
end

#installed_item_material_levelObject (readonly)

Returns the value of attribute installed_item_material_level.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_material_level
  @installed_item_material_level
end

#installed_item_productivity_levelObject (readonly)

Returns the value of attribute installed_item_productivity_level.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_productivity_level
  @installed_item_productivity_level
end

#installed_item_quantityObject (readonly)

Returns the value of attribute installed_item_quantity.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_quantity
  @installed_item_quantity
end

#installed_item_type_idObject (readonly)

Returns the value of attribute installed_item_type_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_item_type_id
  @installed_item_type_id
end

#installed_system_idObject (readonly)

Returns the value of attribute installed_system_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installed_system_id
  @installed_system_id
end

#installer_idObject (readonly)

Returns the value of attribute installer_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def installer_id
  @installer_id
end

#licensed_production_runsObject (readonly)

Returns the value of attribute licensed_production_runs.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def licensed_production_runs
  @licensed_production_runs
end

#material_multiplierObject (readonly)

Returns the value of attribute material_multiplier.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def material_multiplier
  @material_multiplier
end

#output_flagObject (readonly)

Returns the value of attribute output_flag.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def output_flag
  @output_flag
end

#output_location_idObject (readonly)

Returns the value of attribute output_location_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def output_location_id
  @output_location_id
end

#output_type_idObject (readonly)

Returns the value of attribute output_type_id.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def output_type_id
  @output_type_id
end

#pause_production_timeObject (readonly)

Returns the value of attribute pause_production_time.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def pause_production_time
  @pause_production_time
end

#runsObject (readonly)

Returns the value of attribute runs.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def runs
  @runs
end

#time_multiplierObject (readonly)

Returns the value of attribute time_multiplier.



1087
1088
1089
# File 'lib/reve/classes.rb', line 1087

def time_multiplier
  @time_multiplier
end