Class: Google::Apis::HomegraphV1::StateAndNotificationPayload
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::StateAndNotificationPayload
- 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
Payload containing the state and notification information for devices.
Instance Attribute Summary collapse
-
#devices ⇒ Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
The states and notifications specific to a device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StateAndNotificationPayload
constructor
A new instance of StateAndNotificationPayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StateAndNotificationPayload
Returns a new instance of StateAndNotificationPayload.
530 531 532 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 530 def initialize(**args) update!(**args) end |
Instance Attribute Details
#devices ⇒ Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
The states and notifications specific to a device.
Corresponds to the JSON property devices
528 529 530 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 528 def devices @devices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
535 536 537 |
# File 'generated/google/apis/homegraph_v1/classes.rb', line 535 def update!(**args) @devices = args[:devices] if args.key?(:devices) end |