class Google::Apis::HomegraphV1::ReportStateAndNotificationDevice
The states and notifications specific to a device.
Attributes
notifications[RW]
Notifications metadata for devices. See the **Device NOTIFICATIONS** section of the individual trait [reference guides](developers.google.com/ assistant/smarthome/traits). Corresponds to the JSON property `notifications` @return [Hash<String,Object>]
states[RW]
States of devices to update. See the **Device STATES** section of the individual trait [reference guides](developers.google.com/assistant/ smarthome/traits). Corresponds to the JSON property `states` @return [Hash<String,Object>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/homegraph_v1/classes.rb, line 396 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/homegraph_v1/classes.rb, line 401 def update!(**args) @notifications = args[:notifications] if args.key?(:notifications) @states = args[:states] if args.key?(:states) end