Class: Google::Apis::Messages::Notification
- Inherits:
-
Object
- Object
- Google::Apis::Messages::Notification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/messages/classes.rb,
lib/google/apis/messages/representations.rb,
lib/google/apis/messages/representations.rb
Defined Under Namespace
Classes: Representation
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification.
114 115 116 |
# File 'lib/google/apis/messages/classes.rb', line 114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
112 113 114 |
# File 'lib/google/apis/messages/classes.rb', line 112 def body @body end |
#title ⇒ Object
Returns the value of attribute title.
111 112 113 |
# File 'lib/google/apis/messages/classes.rb', line 111 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
119 120 121 122 |
# File 'lib/google/apis/messages/classes.rb', line 119 def update!(**args) @title = args[:title] if args.key?(:title) @body = args[:body] if args.key?(:body) end |