class Google::Apis::DfareportingV2_1::SiteContact

Site Contact

Attributes

address[RW]

Address of this site contact. Corresponds to the JSON property `address` @return [String]

contact_type[RW]

Site contact type. Corresponds to the JSON property `contactType` @return [String]

email[RW]

Email address of this site contact. This is a required field. Corresponds to the JSON property `email` @return [String]

first_name[RW]

First name of this site contact. Corresponds to the JSON property `firstName` @return [String]

id[RW]

ID of this site contact. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [String]

last_name[RW]

Last name of this site contact. Corresponds to the JSON property `lastName` @return [String]

phone[RW]

Primary phone number of this site contact. Corresponds to the JSON property `phone` @return [String]

title[RW]

Title or designation of this site contact. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 9768
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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