Class: NotificationHub::Channels::BrowserPushNotification::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/notification_hub/channels/browser_push_notification/base.rb

Direct Known Subclasses

Fcm

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
# File 'lib/notification_hub/channels/browser_push_notification/base.rb', line 5

def initialize(options)     
BrowserPushNotification.default_gateway = self.class.gateway_code
  options[:template_path] ||= "notification_hub/browser_push_notification"
  options[:timeout_time] ||= 10
          self.class.gateway_options = options          
end

Class Attribute Details

.gateway_codeObject

Returns the value of attribute gateway_code.



14
15
16
# File 'lib/notification_hub/channels/browser_push_notification/base.rb', line 14

def gateway_code
  @gateway_code
end

.gateway_optionsObject

Returns the value of attribute gateway_options.



13
14
15
# File 'lib/notification_hub/channels/browser_push_notification/base.rb', line 13

def gateway_options
  @gateway_options
end