Class: Google::Apis::HomegraphV1::TraitData

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TraitData

Returns a new instance of TraitData.



906
907
908
# File 'lib/google/apis/homegraph_v1/classes.rb', line 906

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

Instance Attribute Details

#commit_timeString

Other metadata for the trait. The time the client update was committed in the server. Corresponds to the JSON property commitTime

Returns:

  • (String)


899
900
901
# File 'lib/google/apis/homegraph_v1/classes.rb', line 899

def commit_time
  @commit_time
end

#traitHash<String,Object>

The Provider Home API trait payload. Corresponds to the JSON property trait

Returns:

  • (Hash<String,Object>)


904
905
906
# File 'lib/google/apis/homegraph_v1/classes.rb', line 904

def trait
  @trait
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



911
912
913
914
# File 'lib/google/apis/homegraph_v1/classes.rb', line 911

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