class Avram::PermittedAttribute(T)

Defined in:

avram/permitted_attribute.cr

Constructors

Instance methods inherited from class Avram::Attribute(T)

add_error(message : ErrorMessage = "is invalid") add_error, changed?(from : T | Nothing = Nothing.new, to : T | Nothing = Nothing.new) changed?, errors errors, name name, original_value original_value, param param, param_key param_key, permitted permitted, reset_errors reset_errors, valid? valid?, value value, value=(value : T) value=

Constructor methods inherited from class Avram::Attribute(T)

new(name : Symbol, param : String | Nil, value : T, param_key : String) new

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

def self.new(name : Symbol, param : String | Nil, value : T, param_key : String) #

[View source]