Class: ActionPushWeb::SubscriptionNotification
- Inherits:
-
Object
- Object
- ActionPushWeb::SubscriptionNotification
- Defined in:
- lib/action_push_web/subscription_notification.rb
Instance Attribute Summary collapse
-
#notification ⇒ Object
readonly
Returns the value of attribute notification.
-
#subscription ⇒ Object
readonly
Returns the value of attribute subscription.
Instance Method Summary collapse
-
#initialize(notification:, subscription:) ⇒ SubscriptionNotification
constructor
A new instance of SubscriptionNotification.
Constructor Details
#initialize(notification:, subscription:) ⇒ SubscriptionNotification
Returns a new instance of SubscriptionNotification.
3 4 5 6 |
# File 'lib/action_push_web/subscription_notification.rb', line 3 def initialize(notification:, subscription:) @notification = notification @subscription = subscription end |
Instance Attribute Details
#notification ⇒ Object (readonly)
Returns the value of attribute notification.
8 9 10 |
# File 'lib/action_push_web/subscription_notification.rb', line 8 def notification @notification end |
#subscription ⇒ Object (readonly)
Returns the value of attribute subscription.
8 9 10 |
# File 'lib/action_push_web/subscription_notification.rb', line 8 def subscription @subscription end |