Module: Eve::API::Services::Corporation
- Defined in:
- lib/eve/api/services/corporation.rb
Instance Method Summary collapse
-
#account_balance ⇒ Object
full API key.
-
#asset_list ⇒ Object
full API key.
-
#container_log ⇒ Object
full API key.
-
#corporation_sheet(corporation_id = nil) ⇒ Object
limited or no API key.
-
#fac_war_stats ⇒ Object
limited API key.
-
#industry_jobs ⇒ Object
full API key.
-
#kill_log(options = {}) ⇒ Object
This API call only returns 1000 entries.
-
#market_orders ⇒ Object
full API key.
-
#medals ⇒ Object
limited API key.
-
#member_medals ⇒ Object
limited API key.
-
#member_security ⇒ Object
full API key.
-
#member_security_log ⇒ Object
full API key.
-
#member_tracking ⇒ Object
full API key.
-
#shareholders ⇒ Object
full API key.
-
#standings ⇒ Object
full API key.
- #starbase_detail(item_id, version = 2) ⇒ Object
- #starbase_list ⇒ Object
-
#titles ⇒ Object
full API key.
-
#wallet_journal(account_key = 1000, options = {}) ⇒ Object
This API call only returns 1000 entries.
-
#wallet_transactions(account_key = 1000, options = {}) ⇒ Object
This API call only returns 1000 entries.
Instance Method Details
#account_balance ⇒ Object
full API key
29 30 31 32 |
# File 'lib/eve/api/services/corporation.rb', line 29 def account_balance validate_credentials :full, :character_id request(:corp, :account_balance) end |
#asset_list ⇒ Object
full API key
35 36 37 38 |
# File 'lib/eve/api/services/corporation.rb', line 35 def asset_list validate_credentials :full, :character_id request(:corp, :asset_list) end |
#container_log ⇒ Object
full API key
41 42 43 44 |
# File 'lib/eve/api/services/corporation.rb', line 41 def container_log validate_credentials :full, :character_id request(:corp, :container_log) end |
#corporation_sheet(corporation_id = nil) ⇒ Object
limited or no API key
6 7 8 |
# File 'lib/eve/api/services/corporation.rb', line 6 def corporation_sheet(corporation_id = nil) request(:corp, :corporation_sheet, {:corporation_id => corporation_id}.optionalize) end |
#fac_war_stats ⇒ Object
limited API key
11 12 13 14 |
# File 'lib/eve/api/services/corporation.rb', line 11 def fac_war_stats validate_credentials :limited, :character_id request(:corp, :fac_war_stats) end |
#industry_jobs ⇒ Object
full API key
47 48 49 50 |
# File 'lib/eve/api/services/corporation.rb', line 47 def industry_jobs validate_credentials :full, :character_id request(:corp, :industry_jobs) end |
#kill_log(options = {}) ⇒ Object
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.
109 110 111 112 113 114 |
# File 'lib/eve/api/services/corporation.rb', line 109 def kill_log( = {}) validate_credentials :full, :character_id .reverse_merge!({:walk => false, :walk_id => 'before_kill_id', :walk_association => 'kills' }) (, :walk, :walk_id, :walk_association) request(:corp, :kill_log, ) end |
#market_orders ⇒ Object
full API key
53 54 55 56 |
# File 'lib/eve/api/services/corporation.rb', line 53 def market_orders validate_credentials :full, :character_id request(:corp, :market_orders) end |
#medals ⇒ Object
limited API key
17 18 19 20 |
# File 'lib/eve/api/services/corporation.rb', line 17 def medals validate_credentials :limited, :character_id request(:corp, :medals) end |
#member_medals ⇒ Object
limited API key
23 24 25 26 |
# File 'lib/eve/api/services/corporation.rb', line 23 def member_medals validate_credentials :limited, :character_id request(:corp, :member_medals) end |
#member_security ⇒ Object
full API key
59 60 61 62 |
# File 'lib/eve/api/services/corporation.rb', line 59 def member_security validate_credentials :full, :character_id request(:corp, :member_security) end |
#member_security_log ⇒ Object
full API key
65 66 67 68 |
# File 'lib/eve/api/services/corporation.rb', line 65 def member_security_log validate_credentials :full, :character_id request(:corp, :member_security_log) end |
#member_tracking ⇒ Object
full API key
71 72 73 74 |
# File 'lib/eve/api/services/corporation.rb', line 71 def member_tracking validate_credentials :full, :character_id request(:corp, :member_tracking) end |
#shareholders ⇒ Object
full API key
77 78 79 80 |
# File 'lib/eve/api/services/corporation.rb', line 77 def shareholders validate_credentials :full, :character_id request(:corp, :shareholders) end |
#standings ⇒ Object
full API key
83 84 85 86 |
# File 'lib/eve/api/services/corporation.rb', line 83 def standings validate_credentials :full, :character_id request(:corp, :standings) end |
#starbase_detail(item_id, version = 2) ⇒ Object
94 95 96 97 |
# File 'lib/eve/api/services/corporation.rb', line 94 def starbase_detail(item_id, version = 2) validate_credentials :full, :character_id request(:corp, :starbase_detail, {:item_id => item_id, :version => version}) end |
#starbase_list ⇒ Object
99 100 101 102 |
# File 'lib/eve/api/services/corporation.rb', line 99 def starbase_list validate_credentials :full, :character_id request(:corp, :starbase_list, :version => 2) end |
#titles ⇒ Object
full API key
89 90 91 92 |
# File 'lib/eve/api/services/corporation.rb', line 89 def titles validate_credentials :full, :character_id request(:corp, :titles) end |
#wallet_journal(account_key = 1000, options = {}) ⇒ Object
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.
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/eve/api/services/corporation.rb', line 121 def wallet_journal(account_key = 1000, = {}) validate_credentials :full, :character_id if account_key.kind_of?(Hash) .merge! account_key account_key = 1000 end .reverse_merge!({:walk => false, :walk_id => 'before_ref_id', :walk_association => 'entries' }) (, :walk, :walk_id, :walk_association) request(:corp, :wallet_journal, .merge(:account_key => account_key)) end |
#wallet_transactions(account_key = 1000, options = {}) ⇒ Object
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.
137 138 139 140 141 142 143 144 145 146 |
# File 'lib/eve/api/services/corporation.rb', line 137 def wallet_transactions(account_key = 1000, = {}) validate_credentials :full, :character_id if account_key.kind_of?(Hash) .merge! account_key account_key = 1000 end .reverse_merge!({:walk => false, :walk_id => 'before_trans_id', :walk_association => 'transactions' }) (, :walk, :walk_id, :walk_association) request(:corp, :wallet_transactions, .merge(:account_key => account_key)) end |