Class: Google::Apis::DfareportingV2_3::SiteContact

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

Overview

Site Contact

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SiteContact

Returns a new instance of SiteContact



9798
9799
9800
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9798

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


9761
9762
9763
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9761

def address
  @address
end

#contact_typeString

Site contact type. Corresponds to the JSON property contactType

Returns:

  • (String)


9766
9767
9768
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9766

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)


9771
9772
9773
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9771

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


9776
9777
9778
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9776

def first_name
  @first_name
end

#idString

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

Returns:

  • (String)


9781
9782
9783
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9781

def id
  @id
end

#last_nameString

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

Returns:

  • (String)


9786
9787
9788
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9786

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


9791
9792
9793
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9791

def phone
  @phone
end

#titleString

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

Returns:

  • (String)


9796
9797
9798
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9796

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 9803

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