module Eve::API::Services::Eve

Public Instance Methods

alliance_id(*names)
Alias for: character_id
alliance_ids(*names)
Alias for: character_id
alliance_list() click to toggle source
# File lib/eve/api/services/eve.rb, line 5
def alliance_list;     request(:eve, :alliance_list);     end
alliance_name(*ids)
Alias for: character_name
alliance_names(*ids)
Alias for: character_names
certificate_tree() click to toggle source
# File lib/eve/api/services/eve.rb, line 6
def certificate_tree;  request(:eve, :certificate_tree, :column_mapping => { 'level' => 'skillLevel' });  end
character_id(*names) click to toggle source

Character ID to Name conversion. Accepts a list of character names, and returns the name for each name in the form of a Hash. Despite the name, it can also accept corporation and alliance names.

# File lib/eve/api/services/eve.rb, line 33
def character_id(*names)
  response = request(:eve, :character_id, :names => names.flatten.join(','))
  result = {}
  [:characters, :corporations, :alliances].each do |field|
    if response.respond_to?(field)
      response.send(field).each { |row| result[row.name] = row.character_id }
    end
  end
  result
end
Also aliased as: character_ids, corporation_ids, corporation_id, corporation_ids, alliance_ids, alliance_id
character_ids(*names)
Alias for: character_id
character_name(*ids) click to toggle source

Character ID to Name conversion. Accepts a list of character IDs, and returns the name for each ID in the form of a Hash. Despite the name, it can also accept corporation and alliance IDs.

# File lib/eve/api/services/eve.rb, line 46
def character_name(*ids)
  response = request(:eve, :character_name, :ids => ids.flatten.join(','))
  result = {}
  [:characters, :corporations, :alliances].each do |field|
    if response.respond_to?(field)
      response.send(field).each { |row| result[row.name] = row.name }
    end
  end
  result
end
character_names(*ids)
Also aliased as: corporation_names, corporation_names, alliance_names
Alias for: character_name
conquerable_station_list() click to toggle source
# File lib/eve/api/services/eve.rb, line 7
def conquerable_station_list; request(:eve, :conquerable_station_list); end
corporation_id(*names)
Alias for: character_id
corporation_ids(*names)
Alias for: character_id
corporation_name(*ids)
Alias for: character_name
corporation_names(*ids)
Alias for: character_names
error_list() click to toggle source
# File lib/eve/api/services/eve.rb, line 8
def error_list; request(:eve, :error_list); end
fac_war_stats() click to toggle source
# File lib/eve/api/services/eve.rb, line 9
def fac_war_stats; request(:eve, :fac_war_stats); end
Also aliased as: factional_warfare_stats
fac_war_top_stats() click to toggle source
# File lib/eve/api/services/eve.rb, line 10
def fac_war_top_stats; request(:eve, :fac_war_top_stats); end
Also aliased as: factional_warfare_top100
factional_warfare_stats()
Alias for: fac_war_stats
factional_warfare_top100()
Alias for: fac_war_top_stats
ref_types() click to toggle source

Returns a list of transaction types used in the Journal Entries Response Example:

result = api.eve.ref_types
result.ref_types                    #=> (Rowset)
result.ref_types[0].ref_type_id     #=> 0
result.ref_types[0].ref_type_name   #=> "Undefined"
result.ref_types[1].ref_type_id     #=> 1
result.ref_types[1].ref_type_name   #=> "Player Trading"
. . .
# File lib/eve/api/services/eve.rb, line 22
def ref_types
  response = request(:eve, :ref_types)
  result = {}
  response.ref_types.each do |row|
    result[row.ref_type_id] = row.ref_type_name
  end
  result
end
skill_tree() click to toggle source
# File lib/eve/api/services/eve.rb, line 11
def skill_tree; request(:eve, :skill_tree); end