lib/ronin/udp_port.rb in ronin-1.2.0 vs lib/ronin/udp_port.rb in ronin-1.3.0
- old
+ new
@@ -23,19 +23,10 @@
#
# Represents a UDP {Port}.
#
class UDPPort < Port
- #
- # Creates a new {UDPPort} resource.
- #
- # @param [Hash] attributes
- # The attribute names and values to initialize the UDP port with.
- #
- # @api public
- #
- def initialize(attributes={})
- super(attributes.merge(:protocol => 'udp'))
- end
+ # The protocol used for the port
+ property :protocol, String, :default => 'tcp'
end
end