Skip to content

Commit 50062e6

Browse files
author
childish-sambino
authored
Update the call price to be optional for deserializing (#475)
1 parent f33ec24 commit 50062e6

File tree

1 file changed

+1
-1
lines changed
  • lib/twilio-ruby/rest/api/v2010/account

1 file changed

+1
-1
lines changed

lib/twilio-ruby/rest/api/v2010/account/call.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def initialize(version, payload, account_sid: nil, sid: nil)
585585
'group_sid' => payload['group_sid'],
586586
'parent_call_sid' => payload['parent_call_sid'],
587587
'phone_number_sid' => payload['phone_number_sid'],
588-
'price' => payload['price'].to_f,
588+
'price' => payload['price'] == nil ? payload['price'] : payload['price'].to_f,
589589
'price_unit' => payload['price_unit'],
590590
'sid' => payload['sid'],
591591
'start_time' => Twilio.deserialize_rfc2822(payload['start_time']),

0 commit comments

Comments
 (0)