Sha256: e40a6bd1f148d7356966a82253553a51cd10706b5001fe1679dbadc2ede9f4ac
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterNotifications < Base API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/notifications/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def notifications output = [] response.each do |notification| output << Models::Notification.new(notification) end output end memoize :notifications def scope 'esi-characters.read_notifications.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_notifications.rb |