Class: EveOnline::ESI::CharacterIndustryJobs
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::CharacterIndustryJobs
- Defined in:
- lib/eve_online/esi/character_industry_jobs.rb
Constant Summary collapse
- API_PATH =
"/v1/characters/%<character_id>s/industry/jobs/"
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
-
#include_completed ⇒ Object
readonly
Returns the value of attribute include_completed.
Instance Method Summary collapse
- #additional_query_params ⇒ Object
-
#initialize(options) ⇒ CharacterIndustryJobs
constructor
A new instance of CharacterIndustryJobs.
- #jobs ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Constructor Details
#initialize(options) ⇒ CharacterIndustryJobs
Returns a new instance of CharacterIndustryJobs.
10 11 12 13 14 15 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 10 def initialize() super @character_id = .fetch(:character_id) @include_completed = .fetch(:include_completed, nil) end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
8 9 10 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 8 def character_id @character_id end |
#include_completed ⇒ Object (readonly)
Returns the value of attribute include_completed.
8 9 10 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 8 def include_completed @include_completed end |
Instance Method Details
#additional_query_params ⇒ Object
32 33 34 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 32 def additional_query_params [:include_completed] end |
#jobs ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 17 def jobs @jobs ||= begin output = [] response.each do |job| output << Models::CharacterIndustryJob.new(job) end output end end |
#path ⇒ Object
36 37 38 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 36 def path format(API_PATH, character_id: character_id) end |
#scope ⇒ Object
28 29 30 |
# File 'lib/eve_online/esi/character_industry_jobs.rb', line 28 def scope "esi-industry.read_character_jobs.v1" end |