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
-
#formatted_value ⇒ String
The read-only value of the gender translated and formatted in the viewer's account locale or the
Accept-Language
HTTP header locale. -
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Gender
Returns a new instance of Gender
739 740 741 |
# File 'generated/google/apis/people_v1/classes.rb', line 739 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_value ⇒ String
The read-only value of the gender translated and formatted in the viewer's
account locale or the Accept-Language
HTTP header locale.
Corresponds to the JSON property formattedValue
722 723 724 |
# File 'generated/google/apis/people_v1/classes.rb', line 722 def formatted_value @formatted_value end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
727 728 729 |
# File 'generated/google/apis/people_v1/classes.rb', line 727 def @metadata end |
#value ⇒ String
The gender for the person. The gender can be custom or one of these predefined values:
male
female
other
unknown
Corresponds to the JSON propertyvalue
737 738 739 |
# File 'generated/google/apis/people_v1/classes.rb', line 737 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
744 745 746 747 748 |
# File 'generated/google/apis/people_v1/classes.rb', line 744 def update!(**args) @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 |