lib/devdnsd/rule.rb in devdnsd-2.4.0 vs lib/devdnsd/rule.rb in devdnsd-3.0.0

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 # -# This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>. +# This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # module DevDNSd # This class encapsulate a rule for matching an hostname. @@ -12,10 +12,10 @@ # @attribute type # @return [Symbol] The type of request to match. Default: `:A`. @see .create # @attribute reply # @return [String] The IP or hostname to reply back to the client. Default: `127.0.0.1`. @see .create # @attribute options - # @return [Hash] A list of options for the request. Default is an empty hash. + # @return [Hash] A list of options for the request. Default is an empty hash. Supported key are `:priority` and `:ttl`, both integers # @attribute block # @return [Proc] An optional block to compute the reply instead of using the `reply` parameter. @see .create class Rule attr_accessor :match attr_accessor :type