Sha256: a0f2d8d40f888aac58dbdb46c02bd338806134a63df6f592f07785ef33e5037b
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterIndustryJobs < Base API_ENDPOINT = 'https://esi.evetech.net/v1/characters/%<character_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s' attr_reader :character_id, :include_completed def initialize(options) super @character_id = options.fetch(:character_id) @include_completed = options.fetch(:include_completed, false) end def jobs output = [] response.each do |job| output << Models::CharacterIndustryJob.new(job) end output end memoize :jobs def scope 'esi-industry.read_character_jobs.v1' end def url format(API_ENDPOINT, character_id: character_id, include_completed: include_completed, datasource: datasource) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems