Sha256: ecdd930c3aec5a603e9c6a0968668b8d5ee1e753113857e9adb2d2ef671d2bdb

Contents?: true

Size: 552 Bytes

Versions: 5

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class AllianceCorporations < Base
      API_ENDPOINT = 'https://esi.evetech.net/v1/alliances/%<alliance_id>s/corporations/?datasource=%<datasource>s'

      attr_reader :alliance_id

      def initialize(options)
        super

        @alliance_id = options.fetch(:alliance_id)
      end

      def corporation_ids
        response
      end

      def scope; end

      def url
        format(API_ENDPOINT, alliance_id: alliance_id, datasource: datasource)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eve_online-0.23.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.22.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.21.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.20.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.19.0 lib/eve_online/esi/alliance_corporations.rb