Class: EveOnline::ESI::Models::IndustryJob

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/industry_job.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#activity_idObject



35
36
37
# File 'lib/eve_online/esi/models/industry_job.rb', line 35

def activity_id
  options['activity_id']
end

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/eve_online/esi/models/industry_job.rb', line 7

def as_json
  {
    activity_id: activity_id,
    blueprint_id: blueprint_id,
    blueprint_location_id: blueprint_location_id,
    blueprint_type_id: blueprint_type_id,
    completed_character_id: completed_character_id,
    completed_date: completed_date,
    cost: cost,
    duration: duration,
    end_date: end_date,
    facility_id: facility_id,
    installer_id: installer_id,
    job_id: job_id,
    licensed_runs: licensed_runs,
    output_location_id: output_location_id,
    pause_date: pause_date,
    probability: probability,
    product_type_id: product_type_id,
    runs: runs,
    start_date: start_date,
    station_id: station_id,
    status: status,
    successful_runs: successful_runs
    # location_id WTF???
  }
end

#blueprint_idObject



39
40
41
# File 'lib/eve_online/esi/models/industry_job.rb', line 39

def blueprint_id
  options['blueprint_id']
end

#blueprint_location_idObject



43
44
45
# File 'lib/eve_online/esi/models/industry_job.rb', line 43

def blueprint_location_id
  options['blueprint_location_id']
end

#blueprint_type_idObject



47
48
49
# File 'lib/eve_online/esi/models/industry_job.rb', line 47

def blueprint_type_id
  options['blueprint_type_id']
end

#completed_character_idObject



51
52
53
# File 'lib/eve_online/esi/models/industry_job.rb', line 51

def completed_character_id
  options['completed_character_id']
end

#completed_dateObject



55
56
57
58
59
# File 'lib/eve_online/esi/models/industry_job.rb', line 55

def completed_date
  completed_date = options['completed_date']

  parse_datetime_with_timezone(completed_date) if completed_date
end

#costObject



61
62
63
# File 'lib/eve_online/esi/models/industry_job.rb', line 61

def cost
  options['cost']
end

#durationObject



65
66
67
# File 'lib/eve_online/esi/models/industry_job.rb', line 65

def duration
  options['duration']
end

#end_dateObject



69
70
71
72
73
# File 'lib/eve_online/esi/models/industry_job.rb', line 69

def end_date
  end_date = options['end_date']

  parse_datetime_with_timezone(end_date) if end_date
end

#facility_idObject



75
76
77
# File 'lib/eve_online/esi/models/industry_job.rb', line 75

def facility_id
  options['facility_id']
end

#installer_idObject



79
80
81
# File 'lib/eve_online/esi/models/industry_job.rb', line 79

def installer_id
  options['installer_id']
end

#job_idObject



83
84
85
# File 'lib/eve_online/esi/models/industry_job.rb', line 83

def job_id
  options['job_id']
end

#licensed_runsObject



87
88
89
# File 'lib/eve_online/esi/models/industry_job.rb', line 87

def licensed_runs
  options['licensed_runs']
end

#output_location_idObject



91
92
93
# File 'lib/eve_online/esi/models/industry_job.rb', line 91

def output_location_id
  options['output_location_id']
end

#pause_dateObject



95
96
97
98
99
# File 'lib/eve_online/esi/models/industry_job.rb', line 95

def pause_date
  pause_date = options['pause_date']

  parse_datetime_with_timezone(pause_date) if pause_date
end

#probabilityObject



101
102
103
# File 'lib/eve_online/esi/models/industry_job.rb', line 101

def probability
  options['probability']
end

#product_type_idObject



105
106
107
# File 'lib/eve_online/esi/models/industry_job.rb', line 105

def product_type_id
  options['product_type_id']
end

#runsObject



109
110
111
# File 'lib/eve_online/esi/models/industry_job.rb', line 109

def runs
  options['runs']
end

#start_dateObject



113
114
115
116
117
# File 'lib/eve_online/esi/models/industry_job.rb', line 113

def start_date
  start_date = options['start_date']

  parse_datetime_with_timezone(start_date) if start_date
end

#station_idObject



119
120
121
# File 'lib/eve_online/esi/models/industry_job.rb', line 119

def station_id
  options['station_id']
end

#statusObject



123
124
125
# File 'lib/eve_online/esi/models/industry_job.rb', line 123

def status
  options['status']
end

#successful_runsObject



127
128
129
# File 'lib/eve_online/esi/models/industry_job.rb', line 127

def successful_runs
  options['successful_runs']
end