Class: Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/homegraph_v1/classes.rb,
generated/google/apis/homegraph_v1/representations.rb,
generated/google/apis/homegraph_v1/representations.rb
Overview
The states and notifications specific to a device.
Instance Attribute Summary collapse
-
#notifications ⇒ Hash<String,Object>
Notifications metadata for devices.
-
#states ⇒ Hash<String,Object>
States of devices to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportStateAndNotificationDevice
constructor
A new instance of ReportStateAndNotificationDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReportStateAndNotificationDevice
Returns a new instance of ReportStateAndNotificationDevice.
419 420 421 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#notifications ⇒ Hash<String,Object>
Notifications metadata for devices.
Corresponds to the JSON property notifications
412 413 414 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 412 def notifications @notifications end |
#states ⇒ Hash<String,Object>
States of devices to update.
Corresponds to the JSON property states
417 418 419 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 417 def states @states end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
424 425 426 427 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 424 def update!(**args) @notifications = args[:notifications] if args.key?(:notifications) @states = args[:states] if args.key?(:states) end |