Sha256: dcca216ff1cc117e501e37874e7be192deefbcda35f737cc67bc30d571542a17
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
module EveOnline module ESI class CharacterLoyaltyPoints < Base API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%s/loyalty/points/?datasource=tranquility'.freeze attr_reader :character_id def initialize(token, character_id) super(token) @character_id = 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 API_ENDPOINT % character_id end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.12.0 | lib/eve_online/esi/character_loyalty_points.rb |