Sha256: 6fd12836448eef0e52203240cd769ccb4e4f5481c795e4910f3872bc0543c56b
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationIndustryJobs < Base API_PATH = '/v1/corporations/%<corporation_id>s/industry/jobs/' attr_reader :corporation_id, :include_completed, :page def initialize(options) super @corporation_id = options.fetch(:corporation_id) @include_completed = options.fetch(:include_completed, nil) @page = options.fetch(:page, 1) end def jobs @jobs ||= begin output = [] response.each do |job| output << Models::CorporationIndustryJob.new(job) end output end end def scope 'esi-industry.read_corporation_jobs.v1' end def roles ['Factory_Manager'] end def additation_query_params [:include_completed, :page] end def path format("#{ API_PATH }", corporation_id: corporation_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/corporation_industry_jobs.rb |
eve_online-0.28.0 | lib/eve_online/esi/corporation_industry_jobs.rb |