Class: Modulr::Resources::Notifications::Notification
- Defined in:
- lib/modulr/resources/notifications/notification.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(response, attributes = {}) ⇒ Notification
constructor
A new instance of Notification.
Methods inherited from Base
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/modulr/resources/notifications/notification.rb', line 7 def config @config end |