Sha256: 2053c25daa7939ee74582d49b4b0a00071964666f4059ccaf45758b8d47e1dae

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class UniverseRaces < Base
      API_PATH = '/v1/universe/races/?datasource=%<datasource>s'

      def races
        @races ||=
          begin
            output = []
            response.each do |race|
              output << Models::Race.new(race)
            end
            output
          end
      end

      def scope; end

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