Class: Google::Apis::CloudsearchV1::CoActivity

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

Metadata about a co-activity session.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CoActivity

Returns a new instance of CoActivity.



5839
5840
5841
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5839

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

Instance Attribute Details

#activity_titleString

The title of the activity in this co-activity session. For example, this might be the title of the video being co-watched, or the name of the round of a game being co-played. Corresponds to the JSON property activityTitle

Returns:

  • (String)


5832
5833
5834
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5832

def activity_title
  @activity_title
end

#co_activity_appString

Identifies the app handling this co-activity. Corresponds to the JSON property coActivityApp

Returns:

  • (String)


5837
5838
5839
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5837

def co_activity_app
  @co_activity_app
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5844
5845
5846
5847
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5844

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