Class: Google::Apis::CloudsearchV1::EmailAddress

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_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.



8462
8463
8464
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8462

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

Instance Attribute Details

#custom_typeString

If the value of type is custom, this property contains the custom type string. Corresponds to the JSON property customType

Returns:

  • (String)


8437
8438
8439
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8437

def custom_type
  @custom_type
end

#email_addressString

The email address. Corresponds to the JSON property emailAddress

Returns:

  • (String)


8442
8443
8444
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8442

def email_address
  @email_address
end

#email_urlString

The URL to send email. Corresponds to the JSON property emailUrl

Returns:

  • (String)


8447
8448
8449
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8447

def email_url
  @email_url
end

#primaryBoolean Also known as: primary?

Indicates if this is the user's primary email. Only one entry can be marked as primary. Corresponds to the JSON property primary

Returns:

  • (Boolean)


8453
8454
8455
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8453

def primary
  @primary
end

#typeString

The type of the email account. Acceptable values are: "custom", "home", "other" , "work". Corresponds to the JSON property type

Returns:

  • (String)


8460
8461
8462
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8460

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8467
8468
8469
8470
8471
8472
8473
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8467

def update!(**args)
  @custom_type = args[:custom_type] if args.key?(:custom_type)
  @email_address = args[:email_address] if args.key?(:email_address)
  @email_url = args[:email_url] if args.key?(:email_url)
  @primary = args[:primary] if args.key?(:primary)
  @type = args[:type] if args.key?(:type)
end