Class: Google::Apis::PlusV1::Activity::Object
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PlusV1::Activity::Object
 
- 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
- 
  
    
      #actor  ⇒ Google::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. 
- 
  
    
      #attachments  ⇒ Array<Google::Apis::PlusV1::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::PlusV1::Activity::Object::Plusoners 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    People who +1'd this activity. 
- 
  
    
      #replies  ⇒ Google::Apis::PlusV1::Activity::Object::Replies 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Comments in reply to this activity. 
- 
  
    
      #resharers  ⇒ Google::Apis::PlusV1::Activity::Object::Resharers 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    People who reshared this activity. 
- 
  
    
      #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
| 416 417 418 | # File 'generated/google/apis/plus_v1/classes.rb', line 416 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#actor ⇒ Google::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 | 
#attachments ⇒ Array<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 end | 
#content ⇒ String
The HTML-formatted content, which is suitable for display.
Corresponds to the JSON property content
| 373 374 375 | # File 'generated/google/apis/plus_v1/classes.rb', line 373 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
| 379 380 381 | # File 'generated/google/apis/plus_v1/classes.rb', line 379 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
| 387 388 389 | # File 'generated/google/apis/plus_v1/classes.rb', line 387 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
| 394 395 396 | # File 'generated/google/apis/plus_v1/classes.rb', line 394 def original_content @original_content end | 
#plusoners ⇒ Google::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 | 
#replies ⇒ Google::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 | 
#resharers ⇒ Google::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 | 
#url ⇒ String
The URL that points to the linked resource.
Corresponds to the JSON property url
| 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 |