Class: Google::Apis::HomegraphV1::HomeTraitPayload
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::HomeTraitPayload
- 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
Container for UDDM trait data associated with a device.
Instance Attribute Summary collapse
-
#root_component ⇒ Google::Apis::HomegraphV1::Component
Component of a provider device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HomeTraitPayload
constructor
A new instance of HomeTraitPayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HomeTraitPayload
Returns a new instance of HomeTraitPayload.
434 435 436 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#root_component ⇒ Google::Apis::HomegraphV1::Component
Component of a provider device.
Corresponds to the JSON property rootComponent
432 433 434 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 432 def root_component @root_component end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
439 440 441 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 439 def update!(**args) @root_component = args[:root_component] if args.key?(:root_component) end |