Class: Google::Apis::DriveactivityV2::Comment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb

Overview

A change about comments on an object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Comment

Returns a new instance of Comment.



366
367
368
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 366

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

Instance Attribute Details

#assignmentGoogle::Apis::DriveactivityV2::Assignment

A comment with an assignment. Corresponds to the JSON property assignment



349
350
351
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 349

def assignment
  @assignment
end

#mentioned_usersArray<Google::Apis::DriveactivityV2::User>

Users who are mentioned in this comment. Corresponds to the JSON property mentionedUsers



354
355
356
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 354

def mentioned_users
  @mentioned_users
end

#postGoogle::Apis::DriveactivityV2::Post

A regular posted comment. Corresponds to the JSON property post



359
360
361
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 359

def post
  @post
end

#suggestionGoogle::Apis::DriveactivityV2::Suggestion

A suggestion. Corresponds to the JSON property suggestion



364
365
366
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 364

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
374
375
376
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 371

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