Class: Google::Apis::PlusV1::Activity::Object

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_v1/representations.rb

Overview

The object of this activity.

Defined Under Namespace

Classes: Actor, Attachment, Plusoners, Replies, Resharers

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Object

Returns a new instance of Object



416
417
418
# File 'generated/google/apis/plus_v1/classes.rb', line 416

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

Instance Attribute Details

#actorGoogle::Apis::PlusV1::Activity::Object::Actor

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



363
364
365
# File 'generated/google/apis/plus_v1/classes.rb', line 363

def actor
  @actor
end

#attachmentsArray<Google::Apis::PlusV1::Activity::Object::Attachment>

The media objects attached to this activity. Corresponds to the JSON property attachments



368
369
370
# File 'generated/google/apis/plus_v1/classes.rb', line 368

def attachments
  @attachments
end

#contentString

The HTML-formatted content, which is suitable for display. Corresponds to the JSON property content

Returns:

  • (String)


373
374
375
# File 'generated/google/apis/plus_v1/classes.rb', line 373

def content
  @content
end

#idString

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

Returns:

  • (String)


379
380
381
# File 'generated/google/apis/plus_v1/classes.rb', line 379

def id
  @id
end

#object_typeString

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

Returns:

  • (String)


387
388
389
# File 'generated/google/apis/plus_v1/classes.rb', line 387

def object_type
  @object_type
end

#original_contentString

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

Returns:

  • (String)


394
395
396
# File 'generated/google/apis/plus_v1/classes.rb', line 394

def original_content
  @original_content
end

#plusonersGoogle::Apis::PlusV1::Activity::Object::Plusoners

People who +1'd this activity. Corresponds to the JSON property plusoners



399
400
401
# File 'generated/google/apis/plus_v1/classes.rb', line 399

def plusoners
  @plusoners
end

#repliesGoogle::Apis::PlusV1::Activity::Object::Replies

Comments in reply to this activity. Corresponds to the JSON property replies



404
405
406
# File 'generated/google/apis/plus_v1/classes.rb', line 404

def replies
  @replies
end

#resharersGoogle::Apis::PlusV1::Activity::Object::Resharers

People who reshared this activity. Corresponds to the JSON property resharers



409
410
411
# File 'generated/google/apis/plus_v1/classes.rb', line 409

def resharers
  @resharers
end

#urlString

The URL that points to the linked resource. Corresponds to the JSON property url

Returns:

  • (String)


414
415
416
# File 'generated/google/apis/plus_v1/classes.rb', line 414

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
426
427
428
429
430
431
432
# 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