Class: Google::Apis::DriveactivityV2::KnownUser

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 known user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KnownUser

Returns a new instance of KnownUser.



1081
1082
1083
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1081

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

Instance Attribute Details

#is_current_userBoolean Also known as: is_current_user?

True if this is the user making the request. Corresponds to the JSON property isCurrentUser

Returns:

  • (Boolean)


1071
1072
1073
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1071

def is_current_user
  @is_current_user
end

#person_nameString

The identifier for this user that can be used with the People API to get more information. The format is people/ACCOUNT_ID. See https://developers.google. com/people/. Corresponds to the JSON property personName

Returns:

  • (String)


1079
1080
1081
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1079

def person_name
  @person_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1086
1087
1088
1089
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1086

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