# File lib/fog/softlayer/models/network/ip.rb, line 43 def destination_ip=(ip) if ip.is_a?(Hash) attributes[:destination_ip] = Fog::Network::Softlayer::Ip.new(ip) elsif ip.is_a?(Fog::Network::Softlayer::Ip) or ip.nil? attributes[:destination_ip] = ip else raise ArgumentError, "Invalid argument type in #{self.class.name}##{__method__}." end end