Class: Aux::Validations::Error
- Inherits:
-
Object
- Object
- Aux::Validations::Error
- Defined in:
- lib/aux/validations/error.rb
Overview
Describes a single validation error
Instance Attribute Summary collapse
- #attribute ⇒ Symbol readonly
-
#details ⇒ Object
readonly
Returns the value of attribute details.
- #scope ⇒ String readonly
- #type ⇒ Symbol readonly
Instance Method Summary collapse
-
#initialize(attribute, scope, type, **details) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(attribute, scope, type, **details) ⇒ Error
Returns a new instance of Error.
21 22 23 24 25 26 |
# File 'lib/aux/validations/error.rb', line 21 def initialize(attribute, scope, type, **details) @attribute = attribute @scope = scope @type = type @details = details end |
Instance Attribute Details
#attribute ⇒ Symbol (readonly)
15 16 17 |
# File 'lib/aux/validations/error.rb', line 15 def attribute @attribute end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
15 |
# File 'lib/aux/validations/error.rb', line 15 attr_reader :attribute, :scope, :type, :details |
#scope ⇒ String (readonly)
15 |
# File 'lib/aux/validations/error.rb', line 15 attr_reader :attribute, :scope, :type, :details |
#type ⇒ Symbol (readonly)
15 |
# File 'lib/aux/validations/error.rb', line 15 attr_reader :attribute, :scope, :type, :details |