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.
75 76 77 |
# File 'lib/google/apis/messages/classes.rb', line 75 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
73 74 75 |
# File 'lib/google/apis/messages/classes.rb', line 73 def body @body end |
#title ⇒ Object
Returns the value of attribute title.
72 73 74 |
# File 'lib/google/apis/messages/classes.rb', line 72 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80 81 82 83 |
# File 'lib/google/apis/messages/classes.rb', line 80 def update!(**args) @title = args[:title] if args.key?(:title) @body = args[:body] if args.key?(:body) end |