Class: Google::Apis::CloudsearchV1::Interaction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Interaction
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Interaction
Returns a new instance of Interaction
1438 1439 1440 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1438 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
1426 1427 1428 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1426 def interaction_time @interaction_time end |
#principal ⇒ Google::Apis::CloudsearchV1::Principal
Reference to a user, group, or domain.
Corresponds to the JSON property principal
1431 1432 1433 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1431 def principal @principal end |
#type ⇒ String
Corresponds to the JSON property type
1436 1437 1438 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1436 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1443 1444 1445 1446 1447 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1443 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 |