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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KnownUser

Returns a new instance of KnownUser.



878
879
880
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 878

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)


868
869
870
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 868

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)


876
877
878
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 876

def person_name
  @person_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



883
884
885
886
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 883

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