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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Assignment

Returns a new instance of Assignment.



265
266
267
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 265

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



258
259
260
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 258

def assigned_user
  @assigned_user
end

#subtypeString

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

Returns:

  • (String)


263
264
265
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 263

def subtype
  @subtype
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 270

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