Class: Greeve::Eve::AllianceList

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/eve/alliance_list.rb

Overview

Returns active alliances in New Eden and their member corporations.

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(version, opts = {}) ⇒ AllianceList

Returns a new instance of AllianceList.

Parameters:

  • version (Integer)

    EVE Alliance List

Raises:

  • (ArgumentError)


21
22
23
24
25
26
# File 'lib/greeve/eve/alliance_list.rb', line 21

def initialize(version, opts = {})
  raise ArgumentError, "not implemented, use version=1" if version == 0

  opts[:query_params] = { "version" => version }
  super(opts)
end