Class: Google::Apis::PlusDomainsV1::Comment::Object
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Comment::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 comment.
Instance Attribute Summary collapse
-
#content ⇒ String
The HTML-formatted content, suitable for display.
-
#object_type ⇒ String
The object type of this comment.
-
#original_content ⇒ String
The content (text) as provided by the author, stored without any HTML formatting.
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
1543 1544 1545 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The HTML-formatted content, suitable for display.
Corresponds to the JSON property content
1528 1529 1530 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1528 def content @content end |
#object_type ⇒ String
The object type of this comment. Possible values are:
- "comment" - A comment in reply to an activity.
Corresponds to the JSON property
objectType
1534 1535 1536 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1534 def object_type @object_type end |
#original_content ⇒ String
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
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 |