Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead
- Inherits:
-
Object
- Object
- Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead
- 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
-
#consumer_phone_number ⇒ String
Consumer phone number associated with the message lead.
-
#customer_name ⇒ String
Name of the customer who created the lead.
-
#job_type ⇒ String
The job type of the specified lead.
-
#postal_code ⇒ String
The postal code of the customer who created the lead.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1MessageLead
constructor
A new instance of GoogleAdsHomeservicesLocalservicesV1MessageLead.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1MessageLead
Returns a new instance of GoogleAdsHomeservicesLocalservicesV1MessageLead.
350 351 352 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 350 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_phone_number ⇒ String
Consumer phone number associated with the message lead.
Corresponds to the JSON property consumerPhoneNumber
333 334 335 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 333 def consumer_phone_number @consumer_phone_number end |
#customer_name ⇒ String
Name of the customer who created the lead.
Corresponds to the JSON property customerName
338 339 340 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 338 def customer_name @customer_name end |
#job_type ⇒ String
The job type of the specified lead.
Corresponds to the JSON property jobType
343 344 345 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 343 def job_type @job_type end |
#postal_code ⇒ String
The postal code of the customer who created the lead.
Corresponds to the JSON property postalCode
348 349 350 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 348 def postal_code @postal_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
355 356 357 358 359 360 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 355 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 |