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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Comment

Returns a new instance of Comment



294
295
296
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 294

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

Instance Attribute Details

#assignmentGoogle::Apis::DriveactivityV2::Assignment

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



277
278
279
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 277

def assignment
  @assignment
end

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

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



282
283
284
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 282

def mentioned_users
  @mentioned_users
end

#postGoogle::Apis::DriveactivityV2::Post

A regular posted comment. Corresponds to the JSON property post



287
288
289
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 287

def post
  @post
end

#suggestionGoogle::Apis::DriveactivityV2::Suggestion

A suggestion. Corresponds to the JSON property suggestion



292
293
294
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 292

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



299
300
301
302
303
304
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 299

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