Sha256: 400e720de2814bd80bdd74a70e24cd1af18912f98c70d703466ecab6a0dba351

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class CharacterImplants < Base
      API_ENDPOINT = 'https://esi.tech.ccp.is/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 implants
        response
      end

      def scope
        'esi-clones.read_implants.v1'
      end

      def url
        format(API_ENDPOINT, character_id: character_id, 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_implants.rb