Class: Google::Apis::PlusDomainsV1::Activity::Object
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PlusDomainsV1::Activity::Object
 
- 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
- 
  
    
      #actor  ⇒ Google::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. 
- 
  
    
      #attachments  ⇒ Array<Google::Apis::PlusDomainsV1::Activity::Object::Attachment> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The media objects attached to this activity. 
- 
  
    
      #content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The HTML-formatted content, which is suitable for display. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the object. 
- 
  
    
      #object_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the object. 
- 
  
    
      #original_content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The content (text) as provided by the author, which is stored without any HTML formatting. 
- 
  
    
      #plusoners  ⇒ Google::Apis::PlusDomainsV1::Activity::Object::Plusoners 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    People who +1'd this activity. 
- 
  
    
      #replies  ⇒ Google::Apis::PlusDomainsV1::Activity::Object::Replies 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Comments in reply to this activity. 
- 
  
    
      #resharers  ⇒ Google::Apis::PlusDomainsV1::Activity::Object::Resharers 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    People who reshared this activity. 
- 
  
    
      #status_for_viewer  ⇒ Google::Apis::PlusDomainsV1::Activity::Object::StatusForViewer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Status of the activity as seen by the viewer. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL that points to the linked resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Object 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Object. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#actor ⇒ Google::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 | 
#attachments ⇒ Array<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 end | 
#content ⇒ String
The HTML-formatted content, which is suitable for display.
Corresponds to the JSON property content
| 380 381 382 | # File 'generated/google/apis/plus_domains_v1/classes.rb', line 380 def content @content end | 
#id ⇒ String
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
| 386 387 388 | # File 'generated/google/apis/plus_domains_v1/classes.rb', line 386 def id @id end | 
#object_type ⇒ String
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
| 394 395 396 | # File 'generated/google/apis/plus_domains_v1/classes.rb', line 394 def object_type @object_type end | 
#original_content ⇒ String
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
| 401 402 403 | # File 'generated/google/apis/plus_domains_v1/classes.rb', line 401 def original_content @original_content end | 
#plusoners ⇒ Google::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 | 
#replies ⇒ Google::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 | 
#resharers ⇒ Google::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_viewer ⇒ Google::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 | 
#url ⇒ String
The URL that points to the linked resource.
Corresponds to the JSON property url
| 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 |