Sha256: cb60d9d658aedb5e1ec8c26c53ba7b9ea71e4342f17f15fcfb69a4d6ce3aa506
Contents?: true
Size: 852 Bytes
Versions: 2
Compression:
Stored size: 852 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterNotifications < Base # TODO: migrate to v3 or v4 API_ENDPOINT = 'https://esi.evetech.net/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 @notifications ||= begin output = [] response.each do |notification| output << Models::Notification.new(notification) end output end end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.22.0 | lib/eve_online/esi/character_notifications.rb |
eve_online-0.21.0 | lib/eve_online/esi/character_notifications.rb |