Class: Google::Apis::DfareportingV2_1::SiteContact
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::SiteContact
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb
Overview
Site Contact
Instance Attribute Summary collapse
-
#address ⇒ String
Address of this site contact.
-
#contact_type ⇒ String
Site contact type.
-
#email ⇒ String
Email address of this site contact.
-
#first_name ⇒ String
First name of this site contact.
-
#id ⇒ String
ID of this site contact.
-
#last_name ⇒ String
Last name of this site contact.
-
#phone ⇒ String
Primary phone number of this site contact.
-
#title ⇒ String
Title or designation of this site contact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SiteContact
constructor
A new instance of SiteContact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SiteContact
Returns a new instance of SiteContact
9768 9769 9770 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Address of this site contact.
Corresponds to the JSON property address
9731 9732 9733 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9731 def address @address end |
#contact_type ⇒ String
Site contact type.
Corresponds to the JSON property contactType
9736 9737 9738 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9736 def contact_type @contact_type end |
#email ⇒ String
Email address of this site contact. This is a required field.
Corresponds to the JSON property email
9741 9742 9743 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9741 def email @email end |
#first_name ⇒ String
First name of this site contact.
Corresponds to the JSON property firstName
9746 9747 9748 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9746 def first_name @first_name end |
#id ⇒ String
ID of this site contact. This is a read-only, auto-generated field.
Corresponds to the JSON property id
9751 9752 9753 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9751 def id @id end |
#last_name ⇒ String
Last name of this site contact.
Corresponds to the JSON property lastName
9756 9757 9758 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9756 def last_name @last_name end |
#phone ⇒ String
Primary phone number of this site contact.
Corresponds to the JSON property phone
9761 9762 9763 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9761 def phone @phone end |
#title ⇒ String
Title or designation of this site contact.
Corresponds to the JSON property title
9766 9767 9768 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9766 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 9773 def update!(**args) @address = args[:address] unless args[:address].nil? @contact_type = args[:contact_type] unless args[:contact_type].nil? @email = args[:email] unless args[:email].nil? @first_name = args[:first_name] unless args[:first_name].nil? @id = args[:id] unless args[:id].nil? @last_name = args[:last_name] unless args[:last_name].nil? @phone = args[:phone] unless args[:phone].nil? @title = args[:title] unless args[:title].nil? end |