Class: Google::Apis::HomegraphV1::TraitData
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::TraitData
- 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
Contains the trait payload for a single trait.
Instance Attribute Summary collapse
-
#trait ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TraitData
constructor
A new instance of TraitData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TraitData
Returns a new instance of TraitData.
779 780 781 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 779 def initialize(**args) update!(**args) end |
Instance Attribute Details
#trait ⇒ Hash<String,Object>
Optional. The Home API trait payload.
Corresponds to the JSON property trait
777 778 779 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 777 def trait @trait end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
784 785 786 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 784 def update!(**args) @trait = args[:trait] if args.key?(:trait) end |