class Avram::PermittedAttribute(T)

Defined in:

avram/permitted_attribute.cr

Constructors

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

[](key) [], []?(key) []?, add_error(message : String = "is invalid")
add_error(message : Proc | Avram::CallableErrorMessage)
add_error
, allow_blank=(allow_blank : Bool) allow_blank=, allow_blank? : Bool allow_blank?, changed?(from : T | Nil | Nothing = IGNORE, to : T | Nil | Nothing = IGNORE) : Bool changed?, errors : Array(String) errors, extract(params : Avram::Paramable) extract, name : Symbol name, original_value : T | Nil original_value, param : Avram::Uploadable | Array(String) | String param, param_key : String param_key, permitted permitted, reset_errors reset_errors, to_f to_f, to_f64 to_f64, to_i to_i, to_i32 to_i32, to_i64 to_i64, to_s(time_format : String)
to_s
to_s
, valid? : Bool valid?, value : T | Nil value, value=(value : T | Nil) value=

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

new(name : Symbol, value : T | Nil, param_key : String, param : Array(String) | Avram::Uploadable | String | Nil = nil) new

Macros inherited from class Avram::Attribute(T)

call_value_instead_error_message(method) call_value_instead_error_message

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

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

[View source]