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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserGender

Returns a new instance of UserGender.



3513
3514
3515
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3513

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)


3501
3502
3503
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3501

def address_me_as
  @address_me_as
end

#custom_genderString

Custom gender. Corresponds to the JSON property customGender

Returns:

  • (String)


3506
3507
3508
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3506

def custom_gender
  @custom_gender
end

#typeString

Gender. Corresponds to the JSON property type

Returns:

  • (String)


3511
3512
3513
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3511

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3518
3519
3520
3521
3522
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3518

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