Module: Eve::API::Services::Corporation

Defined in:
lib/eve/api/services/corporation.rb

Instance Method Summary collapse

Instance Method Details

#account_balanceObject

full API key



29
30
31
32
# File 'lib/eve/api/services/corporation.rb', line 29

def 
  validate_credentials :full, :character_id
  request(:corp, :account_balance)
end

#asset_listObject

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_logObject

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_statsObject

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_jobsObject

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(options = {})
  validate_credentials :full, :character_id
  options.reverse_merge!({:walk => false, :walk_id => 'before_kill_id', :walk_association => 'kills' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:corp, :kill_log, options)
end

#market_ordersObject

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

#medalsObject

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_medalsObject

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_securityObject

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_logObject

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_trackingObject

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

#shareholdersObject

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

#standingsObject

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_listObject



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

#titlesObject

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( = 1000, options = {})
  validate_credentials :full, :character_id
  if .kind_of?(Hash)
    options.merge! 
     = 1000
  end
  options.reverse_merge!({:walk => false, :walk_id => 'before_ref_id', :walk_association => 'entries' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:corp, :wallet_journal, options.merge(: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( = 1000, options = {})
  validate_credentials :full, :character_id
  if .kind_of?(Hash)
    options.merge! 
     = 1000
  end
  options.reverse_merge!({:walk => false, :walk_id => 'before_trans_id', :walk_association => 'transactions' })
  validate_options(options, :walk, :walk_id, :walk_association)
  request(:corp, :wallet_transactions, options.merge(:account_key => ))
end