Class: Helios::Backend::PushNotification

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/helios/backend/push-notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}, &block) ⇒ PushNotification

Returns a new instance of PushNotification.



12
13
14
15
16
17
# File 'lib/helios/backend/push-notification.rb', line 12

def initialize(app, options = {}, &block)
  super(Rack::PushNotification.new)

  @apn_certificate = options[:apn_certificate] || ENV['APN_CERTIFICATE']
  @apn_environment = options[:apn_environment] || ENV['APN_ENVIRONMENT']
end

Instance Attribute Details

#apn_certificateObject (readonly)

Returns the value of attribute apn_certificate.



10
11
12
# File 'lib/helios/backend/push-notification.rb', line 10

def apn_certificate
  @apn_certificate
end

#apn_environmentObject (readonly)

Returns the value of attribute apn_environment.



10
11
12
# File 'lib/helios/backend/push-notification.rb', line 10

def apn_environment
  @apn_environment
end