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.



5418
5419
5420
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5418

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)


5411
5412
5413
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5411

def activity_title
  @activity_title
end

#co_activity_appString

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

Returns:

  • (String)


5416
5417
5418
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5416

def co_activity_app
  @co_activity_app
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5423
5424
5425
5426
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5423

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