Exception: Dynamoid::Errors::DocumentNotValid
- Defined in:
- lib/dynamoid/errors.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(document) ⇒ DocumentNotValid
constructor
A new instance of DocumentNotValid.
Constructor Details
#initialize(document) ⇒ DocumentNotValid
Returns a new instance of DocumentNotValid.
69 70 71 72 |
# File 'lib/dynamoid/errors.rb', line 69 def initialize(document) super("Validation failed: #{document.errors..join(', ')}") @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
67 68 69 |
# File 'lib/dynamoid/errors.rb', line 67 def document @document end |