lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.72.1 vs lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.73.0
- old
+ new
@@ -216,10 +216,10 @@
'account_sid' => payload['account_sid'],
'api_version' => payload['api_version'],
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
'duration' => payload['duration'],
- 'price' => payload['price'].to_f,
+ 'price' => payload['price'] == nil ? payload['price'] : payload['price'].to_f,
'price_unit' => payload['price_unit'],
'recording_sid' => payload['recording_sid'],
'sid' => payload['sid'],
'status' => payload['status'],
'transcription_text' => payload['transcription_text'],
\ No newline at end of file