Class: Google::Apis::HomegraphV1::StateAndNotificationPayload

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StateAndNotificationPayload

Returns a new instance of StateAndNotificationPayload.



580
581
582
# File 'generated/google/apis/homegraph_v1/classes.rb', line 580

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#devicesGoogle::Apis::HomegraphV1::ReportStateAndNotificationDevice

The states and notifications specific to a device. Corresponds to the JSON property devices



578
579
580
# File 'generated/google/apis/homegraph_v1/classes.rb', line 578

def devices
  @devices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



585
586
587
# File 'generated/google/apis/homegraph_v1/classes.rb', line 585

def update!(**args)
  @devices = args[:devices] if args.key?(:devices)
end