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