Class: Google::Apis::DfareportingV4::SiteContact

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SiteContact

Returns a new instance of SiteContact.



11568
11569
11570
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11568

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


11531
11532
11533
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11531

def address
  @address
end

#contact_typeString

Site contact type. Corresponds to the JSON property contactType

Returns:

  • (String)


11536
11537
11538
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11536

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)


11541
11542
11543
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11541

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


11546
11547
11548
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11546

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)


11551
11552
11553
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11551

def id
  @id
end

#last_nameString

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

Returns:

  • (String)


11556
11557
11558
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11556

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


11561
11562
11563
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11561

def phone
  @phone
end

#titleString

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

Returns:

  • (String)


11566
11567
11568
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11566

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11573

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