class Avram::GenericAttribute
- Avram::GenericAttribute
- Reference
- Object
Overview
A generic version of Avram::Attribute
that is used for reporting and metrics.
This is a data only version of an Avram::Atribute
. It is purely for
retrieving and reporting on data. For example, Avram::GenericAttribute
is
used by Avram::Events::SaveFailedEvent
so that subscribers can
get information about attributes that failed to save.
Defined in:
avram/generic_attribute.crConstructors
Instance Method Summary
- #errors : Array(String)
- #name : Symbol
- #original_value : String | Nil
- #param : String | Nil
- #param_key : String
- #valid? : Bool
- #value : String | Nil
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, original_value : String | Nil, value : String | Nil, param_key : String, errors : Array(String))
#