Sha256: c007fc2a2c945f1018346be06bb5c9fd1a95ba4d8b2e1b90fa7088e8315e16c6
Contents?: true
Size: 762 Bytes
Versions: 4
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class WarKillmails < Base API_PATH = '/v1/wars/%<war_id>s/killmails/?datasource=%<datasource>s&page=%<page>s' 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 url format("#{ API_HOST }#{ API_PATH }", war_id: war_id, datasource: datasource, page: page) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems