class Avram::GenericAttribute

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.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, original_value : String | Nil, value : String | Nil, param_key : String, errors : Array(String)) #

[View source]

Instance Method Detail

def errors : Array(String) #

[View source]
def name : Symbol #

[View source]
def original_value : String | Nil #

[View source]
def param : String | Nil #

[View source]
def param_key : String #

[View source]
def valid? : Bool #

[View source]
def value : String | Nil #

[View source]