class Avram::Attribute(T)

Direct Known Subclasses

Defined in:

avram/attribute.cr

Constructors

Instance Method Summary

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]

Instance Method Detail

def add_error(message : ErrorMessage = "is invalid") #

[View source]
def changed?(from : T | Nothing = Nothing.new, to : T | Nothing = Nothing.new) #

[View source]
def errors #

[View source]
def name #

[View source]
def original_value #

[View source]
def param #

[View source]
def param_key #

[View source]
def permitted #

[View source]
def reset_errors #

[View source]
def valid? #

[View source]
def value #

[View source]
def value=(value : T) #

[View source]