Class: Google::Apis::DriveactivityV2::Assignment
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Assignment
- 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
-
#assigned_user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
-
#subtype ⇒ String
The sub-type of this event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Assignment
constructor
A new instance of Assignment.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_user ⇒ Google::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 |
#subtype ⇒ String
The sub-type of this event.
Corresponds to the JSON property subtype
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 |