Sha256: 706386c6d65bd4f4f38daf16f01e2b3cd92de717a43d821bebe978c260c80685
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 = '/v5/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.27.0 | lib/eve_online/esi/character_notifications.rb |
eve_online-0.26.0 | lib/eve_online/esi/character_notifications.rb |