Sha256: da23c8cef7f13fcaf3bf481ab2649d0ef78f3ff9e0ba73212a9743c17839721f

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    class UniverseFactions < Base
      API_PATH = '/v2/universe/factions/?datasource=%<datasource>s'

      def factions
        @factions ||=
          begin
            output = []
            response.each do |faction|
              output << Models::Faction.new(faction)
            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_factions.rb
eve_online-0.26.0 lib/eve_online/esi/universe_factions.rb
eve_online-0.25.0 lib/eve_online/esi/universe_factions.rb
eve_online-0.24.0 lib/eve_online/esi/universe_factions.rb