Class: Google::Apis::DriveactivityV2::Assignment

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 comment with an assignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Assignment

Returns a new instance of Assignment.



331
332
333
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 331

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

Instance Attribute Details

#assigned_userGoogle::Apis::DriveactivityV2::User

Information about an end user. Corresponds to the JSON property assignedUser



324
325
326
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 324

def assigned_user
  @assigned_user
end

#subtypeString

The sub-type of this event. Corresponds to the JSON property subtype

Returns:

  • (String)


329
330
331
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 329

def subtype
  @subtype
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



336
337
338
339
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 336

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