Class: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/commentanalyzer_v1alpha1/classes.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb

Overview

A type of context specific to a comment left on a single-threaded comment message board, where comments are either a top level comment or the child of a top level comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ArticleAndParentComment

Returns a new instance of ArticleAndParentComment.



186
187
188
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 186

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

Instance Attribute Details

#articleGoogle::Apis::CommentanalyzerV1alpha1::TextEntry

Represents a body of text. Corresponds to the JSON property article



179
180
181
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 179

def article
  @article
end

#parent_commentGoogle::Apis::CommentanalyzerV1alpha1::TextEntry

Represents a body of text. Corresponds to the JSON property parentComment



184
185
186
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 184

def parent_comment
  @parent_comment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 191

def update!(**args)
  @article = args[:article] if args.key?(:article)
  @parent_comment = args[:parent_comment] if args.key?(:parent_comment)
end