Sha256: b08151f51dc4fb3cb6b0e96cf99548ef8c718a13923d617786cab6e3f9a42e20
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterNotifications < Base API_PATH = '/v4/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_HOST }#{ API_PATH }", 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.25.0 | lib/eve_online/esi/character_notifications.rb |
eve_online-0.24.0 | lib/eve_online/esi/character_notifications.rb |