Class: Google::Apis::PlusDomainsV1::Comment::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 comment.

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



1543
1544
1545
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1543

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

Instance Attribute Details

#contentString

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

Returns:

  • (String)


1528
1529
1530
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1528

def content
  @content
end

#object_typeString

The object type of this comment. Possible values are:

  • "comment" - A comment in reply to an activity. Corresponds to the JSON property objectType

Returns:

  • (String)


1534
1535
1536
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1534

def object_type
  @object_type
end

#original_contentString

The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request. Corresponds to the JSON property originalContent

Returns:

  • (String)


1541
1542
1543
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1541

def original_content
  @original_content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1548
1549
1550
1551
1552
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1548

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @object_type = args[:object_type] if args.key?(:object_type)
  @original_content = args[:original_content] if args.key?(:original_content)
end