class OccamsRecord::NotFound
Exception when a requested record couldn't be found.
Attributes
attrs[R]
@return [Hash]
model_name[R]
@return [String]
Public Class Methods
new(model_name, attrs)
click to toggle source
@param model_name
[String] @param attrs [Hash]
# File lib/occams-record/errors.rb, line 49 def initialize(model_name, attrs) @model_name, @attrs = model_name, attrs end
Public Instance Methods
message()
click to toggle source
@return [String]
# File lib/occams-record/errors.rb, line 59 def message "#{model_name} could not be found with #{attrs}!" end
to_s()
click to toggle source
@return [String]
# File lib/occams-record/errors.rb, line 54 def to_s message end