Sha256: 7a1d13a76ae418cdeae73bbc80b76054f4a4c8417dbc2251888a37bf53231347

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class AllianceCorporations < Base
      API_PATH = '/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_HOST }#{ API_PATH }", alliance_id: alliance_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/alliance_corporations.rb
eve_online-0.26.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.25.0 lib/eve_online/esi/alliance_corporations.rb
eve_online-0.24.0 lib/eve_online/esi/alliance_corporations.rb