Sha256: 7c9aa983c8131b35aa5de34044cacc2c8d076843fe246faf5e80866069d7b112
Contents?: true
Size: 877 Bytes
Versions: 2
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterIndustryJobs < Base API_PATH = '/v1/characters/%<character_id>s/industry/jobs/' attr_reader :character_id, :include_completed def initialize(options) super @character_id = options.fetch(:character_id) @include_completed = options.fetch(:include_completed, nil) end def jobs @jobs ||= begin output = [] response.each do |job| output << Models::CharacterIndustryJob.new(job) end output end end def scope 'esi-industry.read_character_jobs.v1' end def additation_query_params [:include_completed] end def path format("#{ API_PATH }", character_id: character_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/character_industry_jobs.rb |
eve_online-0.28.0 | lib/eve_online/esi/character_industry_jobs.rb |