Exception: StrongResources::UnregisteredResource

Inherits:
StandardError
  • Object
show all
Defined in:
lib/strong_resources.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnregisteredResource

Returns a new instance of UnregisteredResource.



15
16
17
# File 'lib/strong_resources.rb', line 15

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



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

def message
  "Resource with name #{@name} not registered"
end