Class: Google::Apis::PeopleV1::EmailAddress
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::EmailAddress
- 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 email address.
Instance Attribute Summary collapse
-
#formatted_type ⇒ String
The read-only type of the email address translated and formatted in the viewer' s account locale or the
Accept-Language
HTTP header locale. -
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#type ⇒ String
The type of the email address.
-
#value ⇒ String
The email address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EmailAddress
Returns a new instance of EmailAddress.
829 830 831 |
# File 'generated/google/apis/people_v1/classes.rb', line 829 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_type ⇒ String
The read-only type of the email address translated and formatted in the viewer'
s account locale or the Accept-Language
HTTP header locale.
Corresponds to the JSON property formattedType
827 828 829 |
# File 'generated/google/apis/people_v1/classes.rb', line 827 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
809 810 811 |
# File 'generated/google/apis/people_v1/classes.rb', line 809 def @metadata end |
#type ⇒ String
The type of the email address. The type can be custom or predefined. Possible
values include, but are not limited to, the following: * home
* work
*
other
Corresponds to the JSON property type
821 822 823 |
# File 'generated/google/apis/people_v1/classes.rb', line 821 def type @type end |
#value ⇒ String
The email address.
Corresponds to the JSON property value
814 815 816 |
# File 'generated/google/apis/people_v1/classes.rb', line 814 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
834 835 836 837 838 839 |
# File 'generated/google/apis/people_v1/classes.rb', line 834 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @value = args[:value] if args.key?(:value) @type = args[:type] if args.key?(:type) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) end |