class EveOnline::ESI::CharacterKillmailsRecent

Constants

API_PATH

Attributes

character_id[R]
page[R]

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method EveOnline::ESI::Base::new
# File lib/eve_online/esi/character_killmails_recent.rb, line 10
def initialize(options = {})
  super

  @character_id = options.fetch(:character_id)
  @page = options.fetch(:page, 1)
end

Public Instance Methods

additional_query_params() click to toggle source
# File lib/eve_online/esi/character_killmails_recent.rb, line 32
def additional_query_params
  [:page]
end
killmails() click to toggle source
# File lib/eve_online/esi/character_killmails_recent.rb, line 17
def killmails
  @killmails ||=
    begin
      output = []
      response.each do |killmail|
        output << Models::KillmailShort.new(killmail)
      end
      output
    end
end
path() click to toggle source
# File lib/eve_online/esi/character_killmails_recent.rb, line 36
def path
  format(API_PATH, character_id: character_id)
end
scope() click to toggle source
# File lib/eve_online/esi/character_killmails_recent.rb, line 28
def scope
  "esi-killmails.read_killmails.v1"
end