Sha256: f1a87d889dbf19cdf166e0324d73cdc0552918e01d0854380897a8934500f3db
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationKillmailsRecent < Base API_PATH = '/v1/corporations/%<corporation_id>s/killmails/recent/' attr_reader :corporation_id, :page def initialize(options = {}) super @corporation_id = options.fetch(:corporation_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 'esi-killmails.read_corporation_killmails.v1' end def roles ['Director'] end def additation_query_params [:page] end def path format("#{ API_PATH }", corporation_id: corporation_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/corporation_killmails_recent.rb |
eve_online-0.28.0 | lib/eve_online/esi/corporation_killmails_recent.rb |