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.
43 44 45 46 47 48 49 50 |
# File 'lib/couchbase/model.rb', line 43 def initialize(record) @record = record if @record.errors super(@record.errors..join(', ')) else super('Record invalid') end end |
Instance Attribute Details
#record ⇒ Object (readonly)
42 43 44 |
# File 'lib/couchbase/model.rb', line 42 def record @record end |