Exception: ActiveEntry::NotPerformedError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_entry/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, method) ⇒ NotPerformedError

Returns a new instance of NotPerformedError.



27
28
29
30
31
32
33
# File 'lib/active_entry/errors.rb', line 27

def initialize class_name, method
  @class_name = class_name
  @method = method
  @message = "Auth not performed for #{@class_name}##{@method}."
  
  super @message
end

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



25
26
27
# File 'lib/active_entry/errors.rb', line 25

def class_name
  @class_name
end

#methodObject (readonly)

Returns the value of attribute method.



25
26
27
# File 'lib/active_entry/errors.rb', line 25

def method
  @method
end