lib/twilio-ruby/rest/supersim/v1/ip_command.rb in twilio-ruby-5.72.1 vs lib/twilio-ruby/rest/supersim/v1/ip_command.rb in twilio-ruby-5.73.0
- old
+ new
@@ -285,10 +285,10 @@
'sim_sid' => payload['sim_sid'],
'sim_iccid' => payload['sim_iccid'],
'status' => payload['status'],
'direction' => payload['direction'],
'device_ip' => payload['device_ip'],
- 'device_port' => payload['device_port'].to_i,
+ 'device_port' => payload['device_port'] == nil ? payload['device_port'] : payload['device_port'].to_i,
'payload_type' => payload['payload_type'],
'payload' => payload['payload'],
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'url' => payload['url'],
\ No newline at end of file