diff --git a/lib/netbox_client_ruby/api/ipam/ip_address.rb b/lib/netbox_client_ruby/api/ipam/ip_address.rb index 0125adc..c828705 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_address.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_address.rb @@ -34,7 +34,7 @@ def interface return nil unless interface_data - if interface_data.key? ('virtual_machine') and not interface_data['virtual_machine'].nil? + if interface_data.key? ('virtual_machine') && !interface_data['virtual_machine'].nil? Virtualization::Interface.new interface_data['id'] else DCIM::Interface.new interface_data['id']