Exception: SimpleSchema::InvalidDataType
- Inherits:
-
Exception
- Object
- Exception
- SimpleSchema::InvalidDataType
- Defined in:
- lib/simple_schema/errors.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidDataType
constructor
A new instance of InvalidDataType.
Constructor Details
#initialize(type) ⇒ InvalidDataType
Returns a new instance of InvalidDataType.
16 17 18 19 |
# File 'lib/simple_schema/errors.rb', line 16 def initialize(type) @type = type super "Data must be a Hash, got #{type}" end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'lib/simple_schema/errors.rb', line 15 def type @type end |