Sha256: 2562153a74cc938347a6c15efd183f838f81310e55f40542e082f623f8ee899f

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class UniverseTypes < Base
      API_PATH = '/v1/universe/types/?datasource=%<datasource>s&page=%<page>s'

      attr_reader :page

      def initialize(options = {})
        super

        @page = options.fetch(:page, 1)
      end

      def universe_type_ids
        response
      end

      def scope; end

      def url
        format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
      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/universe_types.rb
eve_online-0.26.0 lib/eve_online/esi/universe_types.rb
eve_online-0.25.0 lib/eve_online/esi/universe_types.rb
eve_online-0.24.0 lib/eve_online/esi/universe_types.rb