Class: Notifications::Client::ResponseNotification
- Inherits:
-
Object
- Object
- Notifications::Client::ResponseNotification
- Defined in:
- lib/notifications/client/response_notification.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseNotification
constructor
A new instance of ResponseNotification.
Constructor Details
#initialize(response) ⇒ ResponseNotification
Returns a new instance of ResponseNotification.
6 7 8 |
# File 'lib/notifications/client/response_notification.rb', line 6 def initialize(response) @id = response["data"]["notification"]["id"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/notifications/client/response_notification.rb', line 4 def id @id end |