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.



75
76
77
# File 'lib/google/apis/messages/classes.rb', line 75

def initialize(**args)
  update!(**args)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



73
74
75
# File 'lib/google/apis/messages/classes.rb', line 73

def body
  @body
end

#titleObject

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