Sha256: a7c1c03fba6c09541e1c77e6e10797e9fa4ac5541818e8347a8aa7439f0de7cb
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterIndustryJobs < Base API_ENDPOINT = 'https://esi.tech.ccp.is/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/character_industry_jobs.rb |