Class: Google::Apis::PeopleV1::PhoneNumber
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::PhoneNumber
 
- 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 phone number.
Instance Attribute Summary collapse
- 
  
    
      #canonical_form  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only canonicalized ITU-T E.164 form of the phone number. 
- 
  
    
      #formatted_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The read-only type of the phone number translated and formatted in the viewer's account locale or the Accept-LanguageHTTP header locale.
- 
  
    
      #metadata  ⇒ Google::Apis::PeopleV1::FieldMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Metadata about a field. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the phone number. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The phone number. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PhoneNumber 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PhoneNumber. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PhoneNumber
Returns a new instance of PhoneNumber
| 1713 1714 1715 | # File 'generated/google/apis/people_v1/classes.rb', line 1713 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#canonical_form ⇒ String
The read-only canonicalized ITU-T E.164
form of the phone number.
Corresponds to the JSON property canonicalForm
| 1677 1678 1679 | # File 'generated/google/apis/people_v1/classes.rb', line 1677 def canonical_form @canonical_form end | 
#formatted_type ⇒ String
The read-only type of the phone number translated and formatted in the
viewer's account locale or the Accept-Language HTTP header locale.
Corresponds to the JSON property formattedType
| 1683 1684 1685 | # File 'generated/google/apis/people_v1/classes.rb', line 1683 def formatted_type @formatted_type end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 1688 1689 1690 | # File 'generated/google/apis/people_v1/classes.rb', line 1688 def @metadata end | 
#type ⇒ String
The type of the phone number. The type can be custom or predefined. Possible values include, but are not limited to, the following:
- home
- work
- mobile
- homeFax
- workFax
- otherFax
- pager
- workMobile
- workPager
- main
- googleVoice
- otherCorresponds to the JSON property- type
| 1706 1707 1708 | # File 'generated/google/apis/people_v1/classes.rb', line 1706 def type @type end | 
#value ⇒ String
The phone number.
Corresponds to the JSON property value
| 1711 1712 1713 | # File 'generated/google/apis/people_v1/classes.rb', line 1711 def value @value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1718 1719 1720 1721 1722 1723 1724 | # File 'generated/google/apis/people_v1/classes.rb', line 1718 def update!(**args) @canonical_form = args[:canonical_form] if args.key?(:canonical_form) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |