class Google::Apis::PeopleV1::Gender

A person's gender.

Attributes

address_me_as[RW]

Free form text field for pronouns that should be used to address the person. Common values are: * `he`/`him` * `she`/`her` * `they`/`them` Corresponds to the JSON property `addressMeAs` @return [String]

formatted_value[RW]

Output only. The value of the gender translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Unspecified or custom value are not localized. Corresponds to the JSON property `formattedValue` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

value[RW]

The gender for the person. The gender can be custom or one of these predefined values: * `male` * `female` * `unspecified` Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/people_v1/classes.rb, line 1105
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/people_v1/classes.rb, line 1110
def update!(**args)
  @address_me_as = args[:address_me_as] if args.key?(:address_me_as)
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
  @metadata = args[:metadata] if args.key?(:metadata)
  @value = args[:value] if args.key?(:value)
end