Class: Google::Apis::DfareportingV2_6::SiteContact
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_6::SiteContact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/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::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SiteContact
Returns a new instance of SiteContact.
10415 10416 10417 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10415 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Address of this site contact.
Corresponds to the JSON property address
10378 10379 10380 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10378 def address @address end |
#contact_type ⇒ String
Site contact type.
Corresponds to the JSON property contactType
10383 10384 10385 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10383 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
10388 10389 10390 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10388 def email @email end |
#first_name ⇒ String
First name of this site contact.
Corresponds to the JSON property firstName
10393 10394 10395 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10393 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
10398 10399 10400 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10398 def id @id end |
#last_name ⇒ String
Last name of this site contact.
Corresponds to the JSON property lastName
10403 10404 10405 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10403 def last_name @last_name end |
#phone ⇒ String
Primary phone number of this site contact.
Corresponds to the JSON property phone
10408 10409 10410 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10408 def phone @phone end |
#title ⇒ String
Title or designation of this site contact.
Corresponds to the JSON property title
10413 10414 10415 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10413 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 10420 def update!(**args) @address = args[:address] if args.key?(:address) @contact_type = args[:contact_type] if args.key?(:contact_type) @email = args[:email] if args.key?(:email) @first_name = args[:first_name] if args.key?(:first_name) @id = args[:id] if args.key?(:id) @last_name = args[:last_name] if args.key?(:last_name) @phone = args[:phone] if args.key?(:phone) @title = args[:title] if args.key?(:title) end |