Class: EveOnline::ESI::Resources::WarsResources
- Inherits:
-
Resource
- Object
- Resource
- EveOnline::ESI::Resources::WarsResources
show all
- Defined in:
- lib/eve_online/esi/resources/wars_resources.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#default_headers, #get_request, #initialize, #post_request, #user_agent
Instance Method Details
#war(war_id:) ⇒ Object
18
19
20
21
22
|
# File 'lib/eve_online/esi/resources/wars_resources.rb', line 18
def war(war_id:)
response = get_request("wars/#{war_id}")
Models::War.new(attributes: response.body, headers: response.)
end
|
#wars(max_war_id: nil) ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/eve_online/esi/resources/wars_resources.rb', line 8
def wars(max_war_id: nil)
response = get_request("wars",
params: {
max_war_id: max_war_id
}.compact)
Models::Wars.new(body: response.body, headers: response.)
end
|