Class: Google::Apis::PeopleV1::RelationshipStatus
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::RelationshipStatus
 
- 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 read-only relationship status.
Instance Attribute Summary collapse
- 
  
    
      #formatted_value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only value of the relationship status translated and formatted in the viewer's account locale or the Accept-LanguageHTTP header locale.
- 
  
    
      #metadata  ⇒ Google::Apis::PeopleV1::FieldMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Metadata about a field. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The relationship status. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RelationshipStatus 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RelationshipStatus. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RelationshipStatus
Returns a new instance of RelationshipStatus
| 1912 1913 1914 | # File 'generated/google/apis/people_v1/classes.rb', line 1912 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#formatted_value ⇒ String
The read-only value of the relationship status translated and formatted in
the viewer's account locale or the Accept-Language HTTP header locale.
Corresponds to the JSON property formattedValue
| 1890 1891 1892 | # File 'generated/google/apis/people_v1/classes.rb', line 1890 def formatted_value @formatted_value end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 1895 1896 1897 | # File 'generated/google/apis/people_v1/classes.rb', line 1895 def @metadata end | 
#value ⇒ String
The relationship status. The value can be custom or predefined. Possible values include, but are not limited to, the following:
- single
- inARelationship
- engaged
- married
- itsComplicated
- openRelationship
- widowed
- inDomesticPartnership
- inCivilUnionCorresponds to the JSON property- value
| 1910 1911 1912 | # File 'generated/google/apis/people_v1/classes.rb', line 1910 def value @value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1917 1918 1919 1920 1921 | # File 'generated/google/apis/people_v1/classes.rb', line 1917 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 |