Class: Google::Apis::DfareportingV4::SiteContact
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::SiteContact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/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 ⇒ Fixnum
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.
Constructor Details
#initialize(**args) ⇒ SiteContact
Returns a new instance of SiteContact.
11757 11758 11759 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11757 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Address of this site contact.
Corresponds to the JSON property address
11720 11721 11722 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11720 def address @address end |
#contact_type ⇒ String
Site contact type.
Corresponds to the JSON property contactType
11725 11726 11727 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11725 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
11730 11731 11732 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11730 def email @email end |
#first_name ⇒ String
First name of this site contact.
Corresponds to the JSON property firstName
11735 11736 11737 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11735 def first_name @first_name end |
#id ⇒ Fixnum
ID of this site contact. This is a read-only, auto-generated field.
Corresponds to the JSON property id
11740 11741 11742 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11740 def id @id end |
#last_name ⇒ String
Last name of this site contact.
Corresponds to the JSON property lastName
11745 11746 11747 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11745 def last_name @last_name end |
#phone ⇒ String
Primary phone number of this site contact.
Corresponds to the JSON property phone
11750 11751 11752 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11750 def phone @phone end |
#title ⇒ String
Title or designation of this site contact.
Corresponds to the JSON property title
11755 11756 11757 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11755 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11762 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 |