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.



6088
6089
6090
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6088

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)


6081
6082
6083
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6081

def activity_title
  @activity_title
end

#co_activity_appString

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

Returns:

  • (String)


6086
6087
6088
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6086

def co_activity_app
  @co_activity_app
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6093
6094
6095
6096
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6093

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