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

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



295
296
297
# File 'generated/google/apis/localservices_v1/classes.rb', line 295

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)


278
279
280
# File 'generated/google/apis/localservices_v1/classes.rb', line 278

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)


283
284
285
# File 'generated/google/apis/localservices_v1/classes.rb', line 283

def customer_name
  @customer_name
end

#job_typeString

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

Returns:

  • (String)


288
289
290
# File 'generated/google/apis/localservices_v1/classes.rb', line 288

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)


293
294
295
# File 'generated/google/apis/localservices_v1/classes.rb', line 293

def postal_code
  @postal_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



300
301
302
303
304
305
# File 'generated/google/apis/localservices_v1/classes.rb', line 300

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