Class: Tikkie::Notifications::BundleNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/tikkie/notifications/bundle_notification.rb

Overview

Bundle notification.

Constant Summary collapse

NOTIFICATION_TYPE =
"BUNDLE"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (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_idObject



23
24
25
# File 'lib/tikkie/notifications/bundle_notification.rb', line 23

def bundle_id
  body[:bundleId]
end

#notification_typeObject



19
20
21
# File 'lib/tikkie/notifications/bundle_notification.rb', line 19

def notification_type
  body[:notificationType]
end

#subscription_idObject



15
16
17
# File 'lib/tikkie/notifications/bundle_notification.rb', line 15

def subscription_id
  body[:subscriptionId]
end