Class: Notifications::Client::ResponseNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/notifications/client/response_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/notifications/client/response_notification.rb', line 4

def id
  @id
end