class Google::Apis::PeopleV1::EmailAddress

A person's email address.

Attributes

formatted_type[RW]

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` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

type[RW]

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` @return [String]

value[RW]

The email address. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/people_v1/classes.rb, line 829
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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