Class: Modulr::Resources::Notifications::Notification

Inherits:
Base
  • Object
show all
Defined in:
lib/modulr/resources/notifications/notification.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

map

Constructor Details

#initialize(response, attributes = {}) ⇒ Notification

Returns a new instance of Notification.



15
16
17
18
19
# File 'lib/modulr/resources/notifications/notification.rb', line 15

def initialize(response, attributes = {})
  super(response, attributes)

  @config = Config.new(nil, attributes[:config])
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/modulr/resources/notifications/notification.rb', line 7

def config
  @config
end