Class: Google::Apis::PeopleV1::Gender

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

Overview

A person's gender.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Gender

Returns a new instance of Gender.



1099
1100
1101
# File 'lib/google/apis/people_v1/classes.rb', line 1099

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

Instance Attribute Details

#address_me_asString

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

Returns:

  • (String)


1079
1080
1081
# File 'lib/google/apis/people_v1/classes.rb', line 1079

def address_me_as
  @address_me_as
end

#formatted_valueString

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

Returns:

  • (String)


1086
1087
1088
# File 'lib/google/apis/people_v1/classes.rb', line 1086

def formatted_value
  @formatted_value
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1091
1092
1093
# File 'lib/google/apis/people_v1/classes.rb', line 1091

def 
  @metadata
end

#valueString

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

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/people_v1/classes.rb', line 1097

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1104
1105
1106
1107
1108
1109
# File 'lib/google/apis/people_v1/classes.rb', line 1104

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