Class: Tikkie::Notifications::BundleNotification
- Inherits:
-
Object
- Object
- Tikkie::Notifications::BundleNotification
- Defined in:
- lib/tikkie/notifications/bundle_notification.rb
Overview
Bundle notification.
Constant Summary collapse
- NOTIFICATION_TYPE =
"BUNDLE"
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
- #bundle_id ⇒ Object
-
#initialize(body) ⇒ BundleNotification
constructor
A new instance of BundleNotification.
- #notification_type ⇒ Object
- #subscription_id ⇒ Object
Constructor Details
#initialize(body) ⇒ BundleNotification
Returns a new instance of BundleNotification.
11 12 13 |
# File 'lib/tikkie/notifications/bundle_notification.rb', line 11 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/tikkie/notifications/bundle_notification.rb', line 9 def body @body end |
Instance Method Details
#bundle_id ⇒ Object
23 24 25 |
# File 'lib/tikkie/notifications/bundle_notification.rb', line 23 def bundle_id body[:bundleId] end |
#notification_type ⇒ Object
19 20 21 |
# File 'lib/tikkie/notifications/bundle_notification.rb', line 19 def notification_type body[:notificationType] end |
#subscription_id ⇒ Object
15 16 17 |
# File 'lib/tikkie/notifications/bundle_notification.rb', line 15 def subscription_id body[:subscriptionId] end |