lib/aws/record/validators/length.rb in aws-sdk-1.9.0 vs lib/aws/record/validators/length.rb in aws-sdk-1.9.1

- old
+ new

@@ -12,11 +12,11 @@ # language governing permissions and limitations under the License. module AWS module Record - # @private + # @api private class LengthValidator < Validator ACCEPTED_OPTIONS = [ :exactly, :within, :minimum, :maximum, :too_long, :too_short, :wrong_length, @@ -64,26 +64,26 @@ end end end - # @private + # @api private protected def wrong_length exactly, got msg = options[:wrong_length] || "is the wrong length (should be %{exactly} characters)" interpolate(msg, :exactly => exactly, :length => got) end - # @private + # @api private protected def too_short min, got msg = options[:too_short] || "is too short (minimum is %{minimum} characters)" interpolate(msg, :minimum => min, :length => got) end - # @private + # @api private protected def too_long max, got msg = options[:too_long] || "is too long (maximum is %{maximum} characters)" interpolate(msg, :maximum => max, :length => got)