Sha256: 27e6d2ae4c16d68a99938cdf49e64ec757913189249a213d359d8f6428df3726

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class Races < Base
      API_ENDPOINT = 'https://esi.evetech.net/v1/universe/races/?datasource=%<datasource>s'

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

      def scope; end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.20.0 lib/eve_online/esi/races.rb
eve_online-0.19.0 lib/eve_online/esi/races.rb