Class: Google::Apis::DfareportingV3_2::SiteContact
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_2::SiteContact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_2/classes.rb,
generated/google/apis/dfareporting_v3_2/representations.rb,
generated/google/apis/dfareporting_v3_2/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SiteContact
Returns a new instance of SiteContact
10878 10879 10880 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10878 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Address of this site contact.
Corresponds to the JSON property address
10841 10842 10843 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10841 def address @address end |
#contact_type ⇒ String
Site contact type.
Corresponds to the JSON property contactType
10846 10847 10848 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10846 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
10851 10852 10853 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10851 def email @email end |
#first_name ⇒ String
First name of this site contact.
Corresponds to the JSON property firstName
10856 10857 10858 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10856 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
10861 10862 10863 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10861 def id @id end |
#last_name ⇒ String
Last name of this site contact.
Corresponds to the JSON property lastName
10866 10867 10868 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10866 def last_name @last_name end |
#phone ⇒ String
Primary phone number of this site contact.
Corresponds to the JSON property phone
10871 10872 10873 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10871 def phone @phone end |
#title ⇒ String
Title or designation of this site contact.
Corresponds to the JSON property title
10876 10877 10878 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10876 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 |
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 10883 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 |