module Eve::API::Services::Character
Public Class Methods
# 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
full API
key
# File lib/eve/api/services/character.rb, line 19 def account_balance; request(:char, :account_balance); end
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
limited API
key
# File lib/eve/api/services/character.rb, line 6 def character_sheet; request(:char, :character_sheet); end
limited API
key
# File lib/eve/api/services/character.rb, line 8 def fac_war_stats; request(:char, :fac_war_stats); end
full API
key
# File lib/eve/api/services/character.rb, line 25 def industry_jobs; request(:char, :industry_jobs); end
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
full API
key
# File lib/eve/api/services/character.rb, line 42 def mail_messages; request(:char, :mail_messages); end
full API
key
# File lib/eve/api/services/character.rb, line 40 def mailing_lists; request(:char, :mailing_lists); end
full API
key
# File lib/eve/api/services/character.rb, line 44 def market_orders; request(:char, :market_orders); end
limited API
key
# File lib/eve/api/services/character.rb, line 10 def medals; request(:char, :medals); end
full API
key
# File lib/eve/api/services/character.rb, line 46 def notifications; request(:char, :notifications); end
full API
key
# File lib/eve/api/services/character.rb, line 48 def research; request(:char, :research); end
limited API
key
# File lib/eve/api/services/character.rb, line 12 def skill_in_training; request(:char, :skill_in_training); end
limited API
key
# File lib/eve/api/services/character.rb, line 14 def skill_queue; request(:char, :skill_queue); end
limited API
key
# File lib/eve/api/services/character.rb, line 16 def standings; request(:char, :standings); end
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
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