Class: Google::Apis::HomegraphV1::StateAndNotificationPayload
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::StateAndNotificationPayload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/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.
528 529 530 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 528 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
526 527 528 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 526 def devices @devices end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
533 534 535 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 533 def update!(**args) @devices = args[:devices] if args.key?(:devices) end |