class AlphaCard::InvalidAttributeType
AlphaCard
resource attributes value error
Public Class Methods
new(value, types)
click to toggle source
Exception constructor. Returns an error with message about wrong attribute value type.
@param value [Object] current attribute value @param types [Array] possible attribute types
Calls superclass method
# File lib/alpha_card/errors/invalid_attribute_type.rb, line 10 def initialize(value, types) super("'#{value}' must be an instance of #{types.join(', ')}") end