Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1PhoneLead

Returns a new instance of GoogleAdsHomeservicesLocalservicesV1PhoneLead.



327
328
329
# File 'generated/google/apis/localservices_v1/classes.rb', line 327

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

Instance Attribute Details

#charged_call_timestampString

Timestamp of the phone call which resulted in a charged phone lead. Corresponds to the JSON property chargedCallTimestamp

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/localservices_v1/classes.rb', line 315

def charged_call_timestamp
  @charged_call_timestamp
end

#charged_connected_call_duration_secondsString

Duration of the charged phone call in seconds. Corresponds to the JSON property chargedConnectedCallDurationSeconds

Returns:

  • (String)


320
321
322
# File 'generated/google/apis/localservices_v1/classes.rb', line 320

def charged_connected_call_duration_seconds
  @charged_connected_call_duration_seconds
end

#consumer_phone_numberString

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

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/localservices_v1/classes.rb', line 325

def consumer_phone_number
  @consumer_phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



332
333
334
335
336
# File 'generated/google/apis/localservices_v1/classes.rb', line 332

def update!(**args)
  @charged_call_timestamp = args[:charged_call_timestamp] if args.key?(:charged_call_timestamp)
  @charged_connected_call_duration_seconds = args[:charged_connected_call_duration_seconds] if args.key?(:charged_connected_call_duration_seconds)
  @consumer_phone_number = args[:consumer_phone_number] if args.key?(:consumer_phone_number)
end