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.
58 59 60 61 |
# File 'lib/dynamoid/errors.rb', line 58 def initialize(document) super("Validation failed: #{document.errors..join(", ")}") @document = document end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
56 57 58 |
# File 'lib/dynamoid/errors.rb', line 56 def document @document end |