module Eve::API::Services::Character

Public Class Methods

included(base) click to toggle source
# File lib/eve/api/services/character.rb, line 82
def self.included(base)
  base.instance_eval do
    validate_credentials :limited, :character_id,
                         :for => %w(character_sheet fac_war_stats medals skill_in_training skill_queue standings
                                   )
    validate_credentials :full, :character_id,
                         :for => %w(account_balance asset_list industry_jobs kill_log mailing_lists
                                    mail_messages market_orders notifications research wallet_journal
                                    wallet_transactions journal_entries)
  end
end

Public Instance Methods

account_balance() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 19
def account_balance; request(:char, :account_balance); end
asset_list(version = nil) click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 21
def asset_list(version = nil)
  request(:char, :asset_list, {:version => version}.optionalize)
end
character_sheet() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 6
def character_sheet; request(:char, :character_sheet); end
fac_war_stats() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 8
def fac_war_stats; request(:char, :fac_war_stats); end
industry_jobs() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 25
def industry_jobs; request(:char, :industry_jobs); end
journal_entries(account_key = 1000, options = { })
Alias for: wallet_journal
kill_log(options = {}) click to toggle source

This API call only returns 1000 entries. Often, you will need to gather all entries, and not just the most recent 1000. If this is true for your application, simply pass the :walk option and this EVE library will automatically “walk” backward in time until the server reports that there are no more entries available.

Walking is disabled by default, so you need to pass the :walk => true option if you wish to enable this.

full API key

# File lib/eve/api/services/character.rb, line 34
def kill_log(options = {})
  options.reverse_merge!({:walk => false, :walk_id => 'before_kill_id', :walk_association => 'kills' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:char, :kill_log, options)
end
mail_messages() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 42
def mail_messages; request(:char, :mail_messages); end
mailing_lists() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 40
def mailing_lists; request(:char, :mailing_lists); end
market_orders() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 44
def market_orders; request(:char, :market_orders); end
medals() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 10
def medals; request(:char, :medals); end
notifications() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 46
def notifications; request(:char, :notifications); end
research() click to toggle source

full API key

# File lib/eve/api/services/character.rb, line 48
def research; request(:char, :research); end
skill_in_training() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 12
def skill_in_training; request(:char, :skill_in_training); end
skill_queue() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 14
def skill_queue; request(:char, :skill_queue); end
standings() click to toggle source

limited API key

# File lib/eve/api/services/character.rb, line 16
def standings; request(:char, :standings); end
wallet_journal(account_key = 1000, options = { }) click to toggle source

This API call only returns 1000 entries. Often, you will need to gather all entries, and not just the most recent 1000. If this is true for your application, simply pass the :walk option and this EVE library will automatically “walk” backward in time until the server reports that there are no more entries available.

Walking is disabled by default, so you need to pass the :walk => true option if you wish to enable this.

full API key

# File lib/eve/api/services/character.rb, line 57
def wallet_journal(account_key = 1000, options = { })
  if account_key.kind_of?(Hash)
    options = account_key
    account_key = 1000
  end
  options.reverse_merge!({:walk => false, :walk_id => 'before_ref_id', :walk_association => 'entries' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:char, :wallet_journal, options.merge(:account_key => account_key))
end
Also aliased as: journal_entries
wallet_transactions(options = {}) click to toggle source

This API call only returns 1000 entries. Often, you will need to gather all entries, and not just the most recent 1000. If this is true for your application, simply pass the :walk option and this EVE library will automatically “walk” backward in time until the server reports that there are no more entries available.

Walking is disabled by default, so you need to pass the :walk => true option if you wish to enable this.

full API key

# File lib/eve/api/services/character.rb, line 74
def wallet_transactions(options = {})
  options.reverse_merge!({:walk => false, :walk_id => 'before_trans_id', :walk_association => 'transactions' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:char, :wallet_transactions, options)
end