Class: Google::Apis::PeopleV1::EmailAddress

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb

Overview

A person's email address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmailAddress

Returns a new instance of EmailAddress.



885
886
887
# File 'lib/google/apis/people_v1/classes.rb', line 885

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

The display name of the email. Corresponds to the JSON property displayName

Returns:

  • (String)


861
862
863
# File 'lib/google/apis/people_v1/classes.rb', line 861

def display_name
  @display_name
end

#formatted_typeString

Output only. The 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

Returns:

  • (String)


867
868
869
# File 'lib/google/apis/people_v1/classes.rb', line 867

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



872
873
874
# File 'lib/google/apis/people_v1/classes.rb', line 872

def 
  @metadata
end

#typeString

The type of the email address. The type can be custom or one of these predefined values: * home * work * other Corresponds to the JSON property type

Returns:

  • (String)


878
879
880
# File 'lib/google/apis/people_v1/classes.rb', line 878

def type
  @type
end

#valueString

The email address. Corresponds to the JSON property value

Returns:

  • (String)


883
884
885
# File 'lib/google/apis/people_v1/classes.rb', line 883

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



890
891
892
893
894
895
896
# File 'lib/google/apis/people_v1/classes.rb', line 890

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @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