Sha256: 0fa02520d9f6342590b721866896fa5dc30266a85652b341f02bf84d90b82ec3
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterKillmailsRecent < Base API_PATH = '/v1/characters/%<character_id>s/killmails/recent/' attr_reader :character_id, :page def initialize(options = {}) super @character_id = options.fetch(:character_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_killmails.v1' end def additation_query_params [:page] end def path format("#{ API_PATH }", character_id: character_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/character_killmails_recent.rb |
eve_online-0.28.0 | lib/eve_online/esi/character_killmails_recent.rb |