class Google::Apis::PlusV1::Activity::Object

The object of this activity.

Attributes

actor[RW]

If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor. Corresponds to the JSON property `actor` @return [Google::Apis::PlusV1::Activity::Object::Actor]

attachments[RW]

The media objects attached to this activity. Corresponds to the JSON property `attachments` @return [Array<Google::Apis::PlusV1::Activity::Object::Attachment>]

content[RW]

The HTML-formatted content, which is suitable for display. Corresponds to the JSON property `content` @return [String]

id[RW]

The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared. Corresponds to the JSON property `id` @return [String]

object_type[RW]

The type of the object. Possible values include, but are not limited to, the following values:

  • “note” - Textual content.

  • “activity” - A Google+ activity.

Corresponds to the JSON property `objectType` @return [String]

original_content[RW]

The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request. Corresponds to the JSON property `originalContent` @return [String]

plusoners[RW]

People who +1'd this activity. Corresponds to the JSON property `plusoners` @return [Google::Apis::PlusV1::Activity::Object::Plusoners]

replies[RW]

Comments in reply to this activity. Corresponds to the JSON property `replies` @return [Google::Apis::PlusV1::Activity::Object::Replies]

resharers[RW]

People who reshared this activity. Corresponds to the JSON property `resharers` @return [Google::Apis::PlusV1::Activity::Object::Resharers]

url[RW]

The URL that points to the linked resource. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/plus_v1/classes.rb, line 416
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/plus_v1/classes.rb, line 421
def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @attachments = args[:attachments] if args.key?(:attachments)
  @content = args[:content] if args.key?(:content)
  @id = args[:id] if args.key?(:id)
  @object_type = args[:object_type] if args.key?(:object_type)
  @original_content = args[:original_content] if args.key?(:original_content)
  @plusoners = args[:plusoners] if args.key?(:plusoners)
  @replies = args[:replies] if args.key?(:replies)
  @resharers = args[:resharers] if args.key?(:resharers)
  @url = args[:url] if args.key?(:url)
end