Sha256: 5607c2bdb33ccaf66ead25509143a26b7d267c7dd9db8392fbaf79fb675a29f2
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationKillmailsRecent < Base API_PATH = '/v1/corporations/%<corporation_id>s/killmails/recent/?datasource=%<datasource>s&page=%<page>s' 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 url format("#{ API_HOST }#{ API_PATH }", corporation_id: corporation_id, datasource: datasource, page: page) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems