Sha256: a6d872e8cd21611ea3a963ac648bb6d0f2592183748bc3857ea7ed71b8752b9e

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class CharacterImplants < Base
      API_PATH = '/v1/characters/%<character_id>s/implants/?datasource=%<datasource>s'

      attr_reader :character_id

      def initialize(options)
        super

        @character_id = options.fetch(:character_id)
      end

      def implant_ids
        response
      end

      def scope
        'esi-clones.read_implants.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

Version Path
eve_online-0.27.0 lib/eve_online/esi/character_implants.rb
eve_online-0.26.0 lib/eve_online/esi/character_implants.rb
eve_online-0.25.0 lib/eve_online/esi/character_implants.rb
eve_online-0.24.0 lib/eve_online/esi/character_implants.rb