Class: Google::Apis::HomegraphV1::DeviceMetadata
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::DeviceMetadata
- 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
Metadata for traits of a single device.
Instance Attribute Summary collapse
-
#trait_commit_timestamps ⇒ Hash<String,String>
Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceMetadata
constructor
A new instance of DeviceMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceMetadata
Returns a new instance of DeviceMetadata.
243 244 245 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 243 def initialize(**args) update!(**args) end |
Instance Attribute Details
#trait_commit_timestamps ⇒ Hash<String,String>
Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last
Spanner commit timestamp.
Corresponds to the JSON property traitCommitTimestamps
241 242 243 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 241 def @trait_commit_timestamps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
248 249 250 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 248 def update!(**args) @trait_commit_timestamps = args[:trait_commit_timestamps] if args.key?(:trait_commit_timestamps) end |