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.
301 302 303 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 301 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
284 285 286 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 284 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
289 290 291 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 289 def customer_name @customer_name end |
#job_type ⇒ String
The job type of the specified lead.
Corresponds to the JSON property jobType
294 295 296 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 294 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
299 300 301 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 299 def postal_code @postal_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
306 307 308 309 310 311 |
# File 'lib/google/apis/localservices_v1/classes.rb', line 306 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 |