Sha256: c14736e89ffc99c9dbd7ea203a7248967f27c67c376a24c04f996f4c3b50d92a
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterLoyaltyPoints < Base API_ENDPOINT = 'https://esi.evetech.net/v1/characters/%<character_id>s/loyalty/points/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def loyalty_points output = [] response.each do |lp| output << Models::LoyaltyPoint.new(lp) end output end memoize :loyalty_points def scope 'esi-characters.read_loyalty.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems