Exception: OceanDynamo::RecordInvalid
- Inherits:
-
DynamoError
- Object
- StandardError
- DynamoError
- OceanDynamo::RecordInvalid
- Defined in:
- lib/ocean-dynamo/exceptions.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalid
constructor
:nodoc:.
Constructor Details
#initialize(record) ⇒ RecordInvalid
:nodoc:
23 24 25 26 27 |
# File 'lib/ocean-dynamo/exceptions.rb', line 23 def initialize(record) # :nodoc: @record = record errors = @record.errors..join(", ") super(@record.errors.) end |
Instance Attribute Details
#record ⇒ Object (readonly)
:nodoc:
22 23 24 |
# File 'lib/ocean-dynamo/exceptions.rb', line 22 def record @record end |