Class: EveOnline::ESI::WarKillmails
- Inherits:
-
Base
- Object
- Base
- EveOnline::ESI::WarKillmails
- Defined in:
- lib/eve_online/esi/war_killmails.rb
Constant Summary collapse
- API_PATH =
"/v1/wars/%<war_id>s/killmails/"
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#war_id ⇒ Object
readonly
Returns the value of attribute war_id.
Instance Method Summary collapse
- #additional_query_params ⇒ Object
-
#initialize(options = {}) ⇒ WarKillmails
constructor
A new instance of WarKillmails.
- #killmails ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ WarKillmails
Returns a new instance of WarKillmails.
10 11 12 13 14 15 |
# File 'lib/eve_online/esi/war_killmails.rb', line 10 def initialize( = {}) super @war_id = .fetch(:war_id) @page = .fetch(:page, 1) end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
8 9 10 |
# File 'lib/eve_online/esi/war_killmails.rb', line 8 def page @page end |
#war_id ⇒ Object (readonly)
Returns the value of attribute war_id.
8 9 10 |
# File 'lib/eve_online/esi/war_killmails.rb', line 8 def war_id @war_id end |
Instance Method Details
#additional_query_params ⇒ Object
31 32 33 |
# File 'lib/eve_online/esi/war_killmails.rb', line 31 def additional_query_params [:page] end |
#killmails ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/eve_online/esi/war_killmails.rb', line 17 def killmails @killmails ||= begin output = [] response.each do |killmail| output << Models::KillmailShort.new(killmail) end output end end |
#path ⇒ Object
35 36 37 |
# File 'lib/eve_online/esi/war_killmails.rb', line 35 def path format(API_PATH, war_id: war_id) end |
#scope ⇒ Object
28 29 |
# File 'lib/eve_online/esi/war_killmails.rb', line 28 def scope end |