Class: Google::Apis::CloudsearchV1::EmailAddress
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EmailAddress
- 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
-
#custom_type ⇒ String
If the value of type is custom, this property contains the custom type string.
-
#email_address ⇒ String
The email address.
-
#email_url ⇒ String
The URL to send email.
-
#primary ⇒ Boolean
(also: #primary?)
Indicates if this is the user's primary email.
-
#type ⇒ String
The type of the email account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EmailAddress
Returns a new instance of EmailAddress.
7937 7938 7939 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_type ⇒ String
If the value of type is custom, this property contains the custom type string.
Corresponds to the JSON property customType
7912 7913 7914 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7912 def custom_type @custom_type end |
#email_address ⇒ String
The email address.
Corresponds to the JSON property emailAddress
7917 7918 7919 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7917 def email_address @email_address end |
#email_url ⇒ String
The URL to send email.
Corresponds to the JSON property emailUrl
7922 7923 7924 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7922 def email_url @email_url end |
#primary ⇒ Boolean 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
7928 7929 7930 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7928 def primary @primary end |
#type ⇒ String
The type of the email account. Acceptable values are: "custom", "home", "other"
, "work".
Corresponds to the JSON property type
7935 7936 7937 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7935 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7942 7943 7944 7945 7946 7947 7948 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7942 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 |