Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1BookingLead

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 booking lead specific information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1BookingLead

Returns a new instance of GoogleAdsHomeservicesLocalservicesV1BookingLead.



200
201
202
# File 'lib/google/apis/localservices_v1/classes.rb', line 200

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

Instance Attribute Details

#booking_appointment_timestampString

Timestamp of when service is provided by advertiser. Corresponds to the JSON property bookingAppointmentTimestamp

Returns:

  • (String)


178
179
180
# File 'lib/google/apis/localservices_v1/classes.rb', line 178

def booking_appointment_timestamp
  @booking_appointment_timestamp
end

#consumer_emailString

Consumer email associated with the booking lead. Corresponds to the JSON property consumerEmail

Returns:

  • (String)


183
184
185
# File 'lib/google/apis/localservices_v1/classes.rb', line 183

def consumer_email
  @consumer_email
end

#consumer_phone_numberString

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

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/localservices_v1/classes.rb', line 188

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)


193
194
195
# File 'lib/google/apis/localservices_v1/classes.rb', line 193

def customer_name
  @customer_name
end

#job_typeString

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

Returns:

  • (String)


198
199
200
# File 'lib/google/apis/localservices_v1/classes.rb', line 198

def job_type
  @job_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
209
210
211
# File 'lib/google/apis/localservices_v1/classes.rb', line 205

def update!(**args)
  @booking_appointment_timestamp = args[:booking_appointment_timestamp] if args.key?(:booking_appointment_timestamp)
  @consumer_email = args[:consumer_email] if args.key?(:consumer_email)
  @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)
end