Exception: SimpleSchema::MissingAttribute

Inherits:
Exception
  • Object
show all
Defined in:
lib/simple_schema/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fragmentsObject (readonly)

Returns the value of attribute fragments.



23
24
25
# File 'lib/simple_schema/errors.rb', line 23

def fragments
  @fragments
end