Class: Google::Apis::PlusDomainsV1::Activity::Object

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

Overview

The object of this activity.

Defined Under Namespace

Classes: Actor, Attachment, Plusoners, Replies, Resharers, StatusForViewer

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.


428
429
430
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 428

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

Instance Attribute Details

#actorGoogle::Apis::PlusDomainsV1::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


370
371
372
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 370

def actor
  @actor
end

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

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


375
376
377
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 375

def attachments
  @attachments
end

#contentString

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

Returns:

  • (String)

380
381
382
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 380

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)

386
387
388
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 386

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)

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

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)

401
402
403
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 401

def original_content
  @original_content
end

#plusonersGoogle::Apis::PlusDomainsV1::Activity::Object::Plusoners

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


406
407
408
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 406

def plusoners
  @plusoners
end

#repliesGoogle::Apis::PlusDomainsV1::Activity::Object::Replies

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


411
412
413
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 411

def replies
  @replies
end

#resharersGoogle::Apis::PlusDomainsV1::Activity::Object::Resharers

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


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

def resharers
  @resharers
end

#status_for_viewerGoogle::Apis::PlusDomainsV1::Activity::Object::StatusForViewer

Status of the activity as seen by the viewer. Corresponds to the JSON property statusForViewer


421
422
423
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 421

def status_for_viewer
  @status_for_viewer
end

#urlString

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

Returns:

  • (String)

426
427
428
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 426

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 433

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)
  @status_for_viewer = args[:status_for_viewer] if args.key?(:status_for_viewer)
  @url = args[:url] if args.key?(:url)
end