Sha256: 69ea08c4dcb6a605885789e699f78e3bfef26609ea6e18eace0374d325d6a8d7
Contents?: true
Size: 733 Bytes
Versions: 18
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class WarKillmails < Base API_PATH = "/v1/wars/%<war_id>s/killmails/" attr_reader :war_id, :page def initialize(options = {}) super @war_id = options.fetch(:war_id) @page = options.fetch(:page, 1) end def killmails @killmails ||= begin output = [] response.each do |killmail| output << Models::KillmailShort.new(killmail) end output end end def scope end def additional_query_params [:page] end def path format(API_PATH, war_id: war_id) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems