class AlphaCard::InvalidAttributeFormat
AlphaCard
resource attributes format error
Public Class Methods
new(value, format)
click to toggle source
Exception constructor. Returns an error with message about wrong attribute format.
@param value [Object] current attribute value @param format [Regexp] required format
Calls superclass method
# File lib/alpha_card/errors/invalid_attribute_format.rb, line 10 def initialize(value, format) super("'#{value}' does not match the '#{format.inspect}' format") end