Sha256: 60eedef1de963748e0851c9d652a4c3665ce5b0fce788458853c2e0afb88c171

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class UniverseTypes < Base
      API_ENDPOINT = 'https://esi.evetech.net/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_ENDPOINT, datasource: datasource, page: page)
      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/universe_types.rb
eve_online-0.22.0 lib/eve_online/esi/universe_types.rb
eve_online-0.21.0 lib/eve_online/esi/universe_types.rb
eve_online-0.20.0 lib/eve_online/esi/universe_types.rb
eve_online-0.19.0 lib/eve_online/esi/universe_types.rb