Sha256: 232a7d17cdcd174d15d4f085908b9b9757560bab401cfa5f9f7f6b694c52e01e
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
module EveOnline module ESI class CharacterIndustryJobs < Base API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%s/industry/jobs/?datasource=tranquility&include_completed=%s'.freeze attr_reader :character_id, :include_completed def initialize(options) super @character_id = options[:character_id] @include_completed = options[:include_completed] ? true : false end def jobs output = [] response.each do |job| output << Models::IndustryJob.new(job) end output end memoize :jobs def scope 'esi-industry.read_character_jobs.v1' end def url API_ENDPOINT % [character_id, include_completed] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.14.0 | lib/eve_online/esi/character_industry_jobs.rb |
eve_online-0.13.0 | lib/eve_online/esi/character_industry_jobs.rb |