Class: Google::Apis::PlusV1::Comment::Object

Inherits:
Object
  • Object
show all
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 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



1224
1225
1226
# File 'generated/google/apis/plus_v1/classes.rb', line 1224

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)


1209
1210
1211
# File 'generated/google/apis/plus_v1/classes.rb', line 1209

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)


1215
1216
1217
# File 'generated/google/apis/plus_v1/classes.rb', line 1215

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)


1222
1223
1224
# File 'generated/google/apis/plus_v1/classes.rb', line 1222

def original_content
  @original_content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1229
1230
1231
1232
1233
# File 'generated/google/apis/plus_v1/classes.rb', line 1229

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