Sha256: 224a238b3b9fedff1d95bd70a8f333849beaf462508ea41bca950cfec58298a6

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

module EveOnline
  module ESI
    class CharacterSkillQueue < Base
      API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/skillqueue/?datasource=tranquility'.freeze

      attr_reader :character_id

      def initialize(options)
        super

        @character_id = options[:character_id]
      end

      def skills
        output = []
        response.each do |skill|
          output << Models::SkillQueueEntry.new(skill)
        end
        output
      end
      memoize :skills

      def scope
        'esi-skills.read_skillqueue.v1'
      end

      def url
        format(API_ENDPOINT, character_id: character_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/character_skill_queue.rb