Exception: CapsuleCRM::Errors::RecordNotSaved
- Inherits:
-
StandardError
- Object
- StandardError
- CapsuleCRM::Errors::RecordNotSaved
- Defined in:
- lib/capsule_crm/errors/record_not_saved.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordNotSaved
constructor
A new instance of RecordNotSaved.
- #message ⇒ Object
Constructor Details
#initialize(record) ⇒ RecordNotSaved
Returns a new instance of RecordNotSaved.
6 7 8 |
# File 'lib/capsule_crm/errors/record_not_saved.rb', line 6 def initialize(record) @record = record end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
4 5 6 |
# File 'lib/capsule_crm/errors/record_not_saved.rb', line 4 def record @record end |
Instance Method Details
#message ⇒ Object
10 11 12 13 14 15 |
# File 'lib/capsule_crm/errors/record_not_saved.rb', line 10 def [ 'CapsuleCRM::Errors::RecordNotSaved', 'You cannot call create unless the parent is saved' ].join(': ') end |