Class: Google::Apis::DfareportingV3_4::SiteContact

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



11196
11197
11198
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11196

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

Instance Attribute Details

#addressString

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

Returns:

  • (String)


11159
11160
11161
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11159

def address
  @address
end

#contact_typeString

Site contact type. Corresponds to the JSON property contactType

Returns:

  • (String)


11164
11165
11166
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11164

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)


11169
11170
11171
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11169

def email
  @email
end

#first_nameString

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

Returns:

  • (String)


11174
11175
11176
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11174

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)


11179
11180
11181
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11179

def id
  @id
end

#last_nameString

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

Returns:

  • (String)


11184
11185
11186
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11184

def last_name
  @last_name
end

#phoneString

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

Returns:

  • (String)


11189
11190
11191
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11189

def phone
  @phone
end

#titleString

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

Returns:

  • (String)


11194
11195
11196
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11194

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 11201

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