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.
Constructor Details
#initialize(**args) ⇒ ReportStateAndNotificationDevice
Returns a new instance of ReportStateAndNotificationDevice.
394 395 396 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 394 def initialize(**args) update!(**args) end |
Instance Attribute Details
#notifications ⇒ Hash<String,Object>
Notifications metadata for devices. See the Device NOTIFICATIONS section
of the individual trait reference guides.
Corresponds to the JSON property notifications
385 386 387 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 385 def notifications @notifications end |
#states ⇒ Hash<String,Object>
States of devices to update. See the Device STATES section of the
individual trait reference guides.
Corresponds to the JSON property states
392 393 394 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 392 def states @states end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
399 400 401 402 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 399 def update!(**args) @notifications = args[:notifications] if args.key?(:notifications) @states = args[:states] if args.key?(:states) end |