Class: Google::Apis::CloudsearchV1::Interaction

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Interaction

Returns a new instance of Interaction.



1693
1694
1695
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1693

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

Instance Attribute Details

#interaction_timeString

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

Returns:

  • (String)


1681
1682
1683
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1681

def interaction_time
  @interaction_time
end

#principalGoogle::Apis::CloudsearchV1::Principal

Reference to a user, group, or domain. Corresponds to the JSON property principal



1686
1687
1688
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1686

def principal
  @principal
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


1691
1692
1693
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1691

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1698
1699
1700
1701
1702
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1698

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