Exception: MdRecord::RecordNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- MdRecord::RecordNotFound
- Defined in:
- lib/md_record/record_not_found.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(message = nil, model: nil, slug: nil) ⇒ RecordNotFound
constructor
A new instance of RecordNotFound.
Constructor Details
#initialize(message = nil, model: nil, slug: nil) ⇒ RecordNotFound
Returns a new instance of RecordNotFound.
7 8 9 10 11 |
# File 'lib/md_record/record_not_found.rb', line 7 def initialize( = nil, model: nil, slug: nil) @model = model @slug = slug super( || ) end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/md_record/record_not_found.rb', line 5 def model @model end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
5 6 7 |
# File 'lib/md_record/record_not_found.rb', line 5 def slug @slug end |