Sha256: 6901eae793b89d018400aed271e9409dbf1d09d2b747445df112bb5937ba717a
Contents?: true
Size: 1.18 KB
Versions: 26
Compression:
Stored size: 1.18 KB
Contents
require 'ably/rest/push/admin' module Ably module Rest # Class providing push notification functionality class Push include Ably::Modules::Conversions # @private attr_reader :client def initialize(client) @client = client end # Admin features for push notifications like managing devices and channel subscriptions # @return [Ably::Rest::Push::Admin] def admin @admin ||= Admin.new(self) end # Activate this device for push notifications by registering with the push transport such as GCM/APNS # # @note This is unsupported in the Ruby library def activate(*arg) raise_unsupported end # Deactivate this device for push notifications by removing the registration with the push transport such as GCM/APNS # # @note This is unsupported in the Ruby library def deactivate(*arg) raise_unsupported end private def raise_unsupported raise Ably::Exceptions::PushNotificationsNotSupported, 'This device does not support receiving or subscribing to push notifications. All PushChannel methods are unavailable' end end end end
Version data entries
26 entries across 26 versions & 2 rubygems