Class: Helios::Backend::PushNotification
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Helios::Backend::PushNotification
- Defined in:
- lib/helios/backend/push-notification.rb
Instance Attribute Summary collapse
-
#apn_certificate ⇒ Object
readonly
Returns the value of attribute apn_certificate.
-
#apn_environment ⇒ Object
readonly
Returns the value of attribute apn_environment.
Instance Method Summary collapse
-
#initialize(app, options = {}, &block) ⇒ PushNotification
constructor
A new instance of PushNotification.
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, = {}, &block) super(Rack::PushNotification.new) @apn_certificate = [:apn_certificate] || ENV['APN_CERTIFICATE'] @apn_environment = [:apn_environment] || ENV['APN_ENVIRONMENT'] end |
Instance Attribute Details
#apn_certificate ⇒ Object (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_environment ⇒ Object (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 |