Sha256: 028de38a24e72799026e876b38cd3cb2073004d79ff390602c1313dd03349723
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationIndustryJobs < Base API_PATH = '/v1/corporations/%<corporation_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s&page=%<page>s' attr_reader :corporation_id, :include_completed, :page def initialize(options) super @corporation_id = options.fetch(:corporation_id) @include_completed = options.fetch(:include_completed, false) @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 url format("#{ API_HOST }#{ API_PATH }", corporation_id: corporation_id, include_completed: include_completed, datasource: datasource, page: page) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.24.0 | lib/eve_online/esi/corporation_industry_jobs.rb |