Sha256: fc2e689758474010a0a62084ca8e2868d9378aa9abb10ef86c1da3b82d7d1dc5
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterLoyaltyPoints < Base API_ENDPOINT = 'https://esi.tech.ccp.is/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/character_loyalty_points.rb |