Class: Google::Apis::HomegraphV1::QueryResponsePayload

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 device states information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryResponsePayload

Returns a new instance of QueryResponsePayload.



366
367
368
# File 'generated/google/apis/homegraph_v1/classes.rb', line 366

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

Instance Attribute Details

#devicesHash<String,Hash<String,Object>>

States of the devices. Map of third-party device ID to struct of device states. Corresponds to the JSON property devices

Returns:

  • (Hash<String,Hash<String,Object>>)


364
365
366
# File 'generated/google/apis/homegraph_v1/classes.rb', line 364

def devices
  @devices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
# File 'generated/google/apis/homegraph_v1/classes.rb', line 371

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