Class: Google::Apis::PeopleV1::Gender
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Gender
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/google/apis/people_v1/representations.rb
Overview
A person's gender.
Instance Attribute Summary collapse
-
#address_me_as ⇒ String
The type of pronouns that should be used to address the person.
-
#formatted_value ⇒ String
Output only.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#value ⇒ String
The gender for the person.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Gender
constructor
A new instance of Gender.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Gender
Returns a new instance of Gender.
902 903 904 |
# File 'generated/google/apis/people_v1/classes.rb', line 902 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_me_as ⇒ String
The type of pronouns that should be used to address the person. The value can
be custom or one of these predefined values: * male
* female
* other
Corresponds to the JSON property addressMeAs
882 883 884 |
# File 'generated/google/apis/people_v1/classes.rb', line 882 def address_me_as @address_me_as end |
#formatted_value ⇒ String
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
889 890 891 |
# File 'generated/google/apis/people_v1/classes.rb', line 889 def formatted_value @formatted_value end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
894 895 896 |
# File 'generated/google/apis/people_v1/classes.rb', line 894 def @metadata end |
#value ⇒ String
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
900 901 902 |
# File 'generated/google/apis/people_v1/classes.rb', line 900 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
907 908 909 910 911 912 |
# File 'generated/google/apis/people_v1/classes.rb', line 907 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 |