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
Output only.
-
#formatted_type ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ PhoneNumber
Returns a new instance of PhoneNumber.
2045 2046 2047 |
# File 'generated/google/apis/people_v1/classes.rb', line 2045 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_form ⇒ String
Output only. The canonicalized ITU-T E.164 form of the phone number.
Corresponds to the JSON property canonicalForm
2019 2020 2021 |
# File 'generated/google/apis/people_v1/classes.rb', line 2019 def canonical_form @canonical_form end |
#formatted_type ⇒ 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
2025 2026 2027 |
# File 'generated/google/apis/people_v1/classes.rb', line 2025 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
2030 2031 2032 |
# File 'generated/google/apis/people_v1/classes.rb', line 2030 def @metadata end |
#type ⇒ String
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
2038 2039 2040 |
# File 'generated/google/apis/people_v1/classes.rb', line 2038 def type @type end |
#value ⇒ String
The phone number.
Corresponds to the JSON property value
2043 2044 2045 |
# File 'generated/google/apis/people_v1/classes.rb', line 2043 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2050 2051 2052 2053 2054 2055 2056 |
# File 'generated/google/apis/people_v1/classes.rb', line 2050 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 |