Exception: Freshen::UpdateMethodNotImplementedError

Inherits:
NotImplementedError
  • Object
show all
Defined in:
lib/freshen/errors.rb

Overview

A NotImplementedError subclass for when the update method of a freshener subclass has not been implemented.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(freshener) ⇒ UpdateMethodNotImplementedError

Returns a new instance of UpdateMethodNotImplementedError.



28
29
30
# File 'lib/freshen/errors.rb', line 28

def initialize(freshener)
  @name = freshener.class.name.split('::').last
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



26
27
28
# File 'lib/freshen/errors.rb', line 26

def name
  @name
end

Instance Method Details

#to_sObject



32
33
34
# File 'lib/freshen/errors.rb', line 32

def to_s
  "#{@name} does not implement the update method"
end