Sha256: b86c08c14f765679b3be1d97c49b0a1513862a999b36d7e4b43e45e915e13e12
Contents?: true
Size: 769 Bytes
Versions: 4
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterSkillQueue < Base API_PATH = '/v2/characters/%<character_id>s/skillqueue/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def skills @skills ||= begin output = [] response.each do |skill| output << Models::SkillQueueEntry.new(skill) end output end end def scope 'esi-skills.read_skillqueue.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems