Class: Google::Apis::Messages::WebNotification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/messages/classes.rb,
lib/google/apis/messages/representations.rb

Defined Under Namespace

Classes: Representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WebNotification

Returns a new instance of WebNotification.



114
115
116
# File 'lib/google/apis/messages/classes.rb', line 114

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

Instance Attribute Details

#iconObject

Returns the value of attribute icon.



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

def icon
  @icon
end

Instance Method Details

#update!(**args) ⇒ Object



118
119
120
# File 'lib/google/apis/messages/classes.rb', line 118

def update!(**args)
  @icon = args[:icon] if args.key?(:icon)
end