Class: Google::Apis::DriveactivityV2::Comment
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Comment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb
Overview
A change about comments on an object.
Instance Attribute Summary collapse
-
#assignment ⇒ Google::Apis::DriveactivityV2::Assignment
A comment with an assignment.
-
#mentioned_users ⇒ Array<Google::Apis::DriveactivityV2::User>
Users who are mentioned in this comment.
-
#post ⇒ Google::Apis::DriveactivityV2::Post
A regular posted comment.
-
#suggestion ⇒ Google::Apis::DriveactivityV2::Suggestion
A suggestion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment.
300 301 302 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assignment ⇒ Google::Apis::DriveactivityV2::Assignment
A comment with an assignment.
Corresponds to the JSON property assignment
283 284 285 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 283 def assignment @assignment end |
#mentioned_users ⇒ Array<Google::Apis::DriveactivityV2::User>
Users who are mentioned in this comment.
Corresponds to the JSON property mentionedUsers
288 289 290 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 288 def mentioned_users @mentioned_users end |
#post ⇒ Google::Apis::DriveactivityV2::Post
A regular posted comment.
Corresponds to the JSON property post
293 294 295 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 293 def post @post end |
#suggestion ⇒ Google::Apis::DriveactivityV2::Suggestion
A suggestion.
Corresponds to the JSON property suggestion
298 299 300 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 298 def suggestion @suggestion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
305 306 307 308 309 310 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 305 def update!(**args) @assignment = args[:assignment] if args.key?(:assignment) @mentioned_users = args[:mentioned_users] if args.key?(:mentioned_users) @post = args[:post] if args.key?(:post) @suggestion = args[:suggestion] if args.key?(:suggestion) end |