class AlphaCard::InvalidAttributeValue

AlphaCard resource attributes value error

Public Class Methods

new(value, values) click to toggle source

Exception constructor. Returns an error with message about wrong value and possible values.

@param value [Object] current attribute value @param values [Array] possible attribute values

Calls superclass method
# File lib/alpha_card/errors/invalid_attribute_value.rb, line 10
def initialize(value, values)
  super("'#{value}' is invalid attribute value. Use one from the following: #{values.join(', ')}")
end