Class: Error::RecordInvalid
Overview
Instance Attribute Summary collapse
- #record ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(record) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
52 53 54 55 56 57 58 59 |
# File 'lib/couchbase/model.rb', line 52 def initialize(record) @record = record if @record.errors super(@record.errors..join(', ')) else super('Record invalid') end end |
Instance Attribute Details
#record ⇒ Object (readonly)
51 52 53 |
# File 'lib/couchbase/model.rb', line 51 def record @record end |