Sha256: 9bdd7766f34056ab86883948de25be9410ce9b46b66666a3c27e46305f67aaa7

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

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

      def ancestries
        output = []
        response.each do |ancestry|
          output << Models::Ancestry.new(ancestry)
        end
        output
      end
      memoize :ancestries

      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/ancestries.rb
eve_online-0.19.0 lib/eve_online/esi/ancestries.rb