Class: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment
- Inherits:
-
Object
- Object
- Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment
- 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
-
#article ⇒ Google::Apis::CommentanalyzerV1alpha1::TextEntry
Represents a body of text.
-
#parent_comment ⇒ Google::Apis::CommentanalyzerV1alpha1::TextEntry
Represents a body of text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ArticleAndParentComment
constructor
A new instance of ArticleAndParentComment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#article ⇒ Google::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_comment ⇒ Google::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 |