class EveOnline::ESI::CharacterLoyaltyPoints

Constants

API_PATH

Attributes

character_id[R]

Public Class Methods

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

  @character_id = options.fetch(:character_id)
end

Public Instance Methods

loyalty_points() click to toggle source
# File lib/eve_online/esi/character_loyalty_points.rb, line 16
def loyalty_points
  @loyalty_points ||=
    begin
      output = []
      response.each do |lp|
        output << Models::LoyaltyPoint.new(lp)
      end
      output
    end
end
path() click to toggle source
# File lib/eve_online/esi/character_loyalty_points.rb, line 31
def path
  format(API_PATH, character_id: character_id)
end
scope() click to toggle source
# File lib/eve_online/esi/character_loyalty_points.rb, line 27
def scope
  "esi-characters.read_loyalty.v1"
end