Exception: SimpleSchema::MissingAttribute
- Inherits:
-
Exception
- Object
- Exception
- SimpleSchema::MissingAttribute
- Defined in:
- lib/simple_schema/errors.rb
Instance Attribute Summary collapse
-
#fragments ⇒ Object
readonly
Returns the value of attribute fragments.
Instance Method Summary collapse
-
#initialize(fragments) ⇒ MissingAttribute
constructor
A new instance of MissingAttribute.
Constructor Details
#initialize(fragments) ⇒ MissingAttribute
Returns a new instance of MissingAttribute.
25 26 27 28 |
# File 'lib/simple_schema/errors.rb', line 25 def initialize(fragments) @fragments = fragments super "Missing #{fragments.join('/')}" end |
Instance Attribute Details
#fragments ⇒ Object (readonly)
Returns the value of attribute fragments.
23 24 25 |
# File 'lib/simple_schema/errors.rb', line 23 def fragments @fragments end |