Class: Google::Apis::AdminDirectoryV1::UserGender

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserGender

Returns a new instance of UserGender.



4304
4305
4306
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4304

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

Instance Attribute Details

#address_me_asString

AddressMeAs. A human-readable string containing the proper way to refer to the profile owner by humans for example he/him/his or they/them/their. Corresponds to the JSON property addressMeAs

Returns:

  • (String)


4292
4293
4294
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4292

def address_me_as
  @address_me_as
end

#custom_genderString

Custom gender. Corresponds to the JSON property customGender

Returns:

  • (String)


4297
4298
4299
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4297

def custom_gender
  @custom_gender
end

#typeString

Gender. Corresponds to the JSON property type

Returns:

  • (String)


4302
4303
4304
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4302

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4309
4310
4311
4312
4313
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4309

def update!(**args)
  @address_me_as = args[:address_me_as] if args.key?(:address_me_as)
  @custom_gender = args[:custom_gender] if args.key?(:custom_gender)
  @type = args[:type] if args.key?(:type)
end