Sha256: d304e89b86a79d3b228ed70e1602a5147ce2e0a03de6d2aae3d0645e2a7e51ca
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 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 additation_query_params [:page] end def path format("#{ API_PATH }", war_id: war_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/war_killmails.rb |
eve_online-0.28.0 | lib/eve_online/esi/war_killmails.rb |