Sha256: 57104071384de8073f1541138e838574fe6989aa5ca826774255ce351c157da3

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class Factions < Base
      API_ENDPOINT = 'https://esi.evetech.net/v2/universe/factions/?datasource=%<datasource>s'

      def factions
        output = []
        response.each do |faction|
          output << Models::Faction.new(faction)
        end
        output
      end
      memoize :factions

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