Class: ActionPushWeb::SubscriptionNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/action_push_web/subscription_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#notificationObject (readonly)

Returns the value of attribute notification.



8
9
10
# File 'lib/action_push_web/subscription_notification.rb', line 8

def notification
  @notification
end

#subscriptionObject (readonly)

Returns the value of attribute subscription.



8
9
10
# File 'lib/action_push_web/subscription_notification.rb', line 8

def subscription
  @subscription
end