Class: Google::Apis::CloudsearchV1::Interaction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Interaction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Represents an interaction between a user and an item.
Instance Attribute Summary collapse
-
#interaction_time ⇒ String
The time when the user acted on the item.
-
#principal ⇒ Google::Apis::CloudsearchV1::Principal
Reference to a user, group, or domain.
-
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Interaction
constructor
A new instance of Interaction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Interaction
Returns a new instance of Interaction.
12136 12137 12138 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interaction_time ⇒ String
The time when the user acted on the item. If multiple actions of the same type
exist for a single user, only the most recent action is recorded.
Corresponds to the JSON property interactionTime
12124 12125 12126 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12124 def interaction_time @interaction_time end |
#principal ⇒ Google::Apis::CloudsearchV1::Principal
Reference to a user, group, or domain.
Corresponds to the JSON property principal
12129 12130 12131 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12129 def principal @principal end |
#type ⇒ String
Corresponds to the JSON property type
12134 12135 12136 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12134 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12141 12142 12143 12144 12145 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12141 def update!(**args) @interaction_time = args[:interaction_time] if args.key?(:interaction_time) @principal = args[:principal] if args.key?(:principal) @type = args[:type] if args.key?(:type) end |