Class: Google::Apis::Messages::Notification

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



112
113
114
# File 'lib/google/apis/messages/classes.rb', line 112

def body
  @body
end

#titleObject

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