Exception: Lexoranking::ModelDoNotExists

Inherits:
LexorankingError show all
Defined in:
lib/lexoranking/errors.rb

Overview

ModelDoNotExists class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, record = nil) ⇒ ModelDoNotExists

Returns a new instance of ModelDoNotExists.



21
22
23
24
# File 'lib/lexoranking/errors.rb', line 21

def initialize(message=nil, record=nil)
  @record = record
  super(message)
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



19
20
21
# File 'lib/lexoranking/errors.rb', line 19

def record
  @record
end