class Google::Apis::PeopleV1::PhoneNumber
A person's phone number.
Attributes
Output only. The canonicalized [ITU-T E.164](law.resource.org/pub/us/ cfr/ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number. Corresponds to the JSON property `canonicalForm` @return [String]
Output only. The 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` @return [String]
Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]
The type of the phone number. The type can be custom or one of these predefined values: * `home` * `work` * `mobile` * `homeFax` * `workFax` * ` otherFax` * `pager` * `workMobile` * `workPager` * `main` * `googleVoice` * ` other` Corresponds to the JSON property `type` @return [String]
The phone number. Corresponds to the JSON property `value` @return [String]
Public Class Methods
# File lib/google/apis/people_v1/classes.rb, line 2295 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/people_v1/classes.rb, line 2300 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