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.
70 71 72 73 |
# File 'lib/dynamoid/errors.rb', line 70 def initialize(document) super("Validation failed: #{document.errors..join(", ")}") @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
68 69 70 |
# File 'lib/dynamoid/errors.rb', line 68 def document @document end |