Class: Google::Apis::DfareportingV2_8::SiteContact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_8/classes.rb,
generated/google/apis/dfareporting_v2_8/representations.rb,
generated/google/apis/dfareporting_v2_8/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



10633
10634
10635
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10633

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


10596
10597
10598
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10596

def address
  @address
end

#contact_typeString

Site contact type. Corresponds to the JSON property contactType

Returns:

  • (String)


10601
10602
10603
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10601

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)


10606
10607
10608
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10606

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


10611
10612
10613
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10611

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)


10616
10617
10618
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10616

def id
  @id
end

#last_nameString

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

Returns:

  • (String)


10621
10622
10623
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10621

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


10626
10627
10628
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10626

def phone
  @phone
end

#titleString

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

Returns:

  • (String)


10631
10632
10633
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10631

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10638

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