Class: Google::Apis::DfareportingV5::SiteContact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/representations.rb

Overview

Site Contact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SiteContact

Returns a new instance of SiteContact.



12034
12035
12036
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12034

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressString

Address of this site contact. Corresponds to the JSON property address

Returns:

  • (String)


11997
11998
11999
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 11997

def address
  @address
end

#contact_typeString

Site contact type. Corresponds to the JSON property contactType

Returns:

  • (String)


12002
12003
12004
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12002

def contact_type
  @contact_type
end

#emailString

Email address of this site contact. This is a required field. Corresponds to the JSON property email

Returns:

  • (String)


12007
12008
12009
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12007

def email
  @email
end

#first_nameString

First name of this site contact. Corresponds to the JSON property firstName

Returns:

  • (String)


12012
12013
12014
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12012

def first_name
  @first_name
end

#idFixnum

ID of this site contact. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


12017
12018
12019
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12017

def id
  @id
end

#last_nameString

Last name of this site contact. Corresponds to the JSON property lastName

Returns:

  • (String)


12022
12023
12024
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12022

def last_name
  @last_name
end

#phoneString

Primary phone number of this site contact. Corresponds to the JSON property phone

Returns:

  • (String)


12027
12028
12029
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12027

def phone
  @phone
end

#titleString

Title or designation of this site contact. Corresponds to the JSON property title

Returns:

  • (String)


12032
12033
12034
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12032

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 12039

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