Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead

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

Overview

Container for message lead specific information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1MessageLead

Returns a new instance of GoogleAdsHomeservicesLocalservicesV1MessageLead.



357
358
359
# File 'lib/google/apis/localservices_v1/classes.rb', line 357

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

Instance Attribute Details

#consumer_phone_numberString

Consumer phone number associated with the message lead. Corresponds to the JSON property consumerPhoneNumber

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/localservices_v1/classes.rb', line 340

def consumer_phone_number
  @consumer_phone_number
end

#customer_nameString

Name of the customer who created the lead. Corresponds to the JSON property customerName

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/localservices_v1/classes.rb', line 345

def customer_name
  @customer_name
end

#job_typeString

The job type of the specified lead. Corresponds to the JSON property jobType

Returns:

  • (String)


350
351
352
# File 'lib/google/apis/localservices_v1/classes.rb', line 350

def job_type
  @job_type
end

#postal_codeString

The postal code of the customer who created the lead. Corresponds to the JSON property postalCode

Returns:

  • (String)


355
356
357
# File 'lib/google/apis/localservices_v1/classes.rb', line 355

def postal_code
  @postal_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
366
367
# File 'lib/google/apis/localservices_v1/classes.rb', line 362

def update!(**args)
  @consumer_phone_number = args[:consumer_phone_number] if args.key?(:consumer_phone_number)
  @customer_name = args[:customer_name] if args.key?(:customer_name)
  @job_type = args[:job_type] if args.key?(:job_type)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
end