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.



11
12
13
# File 'lib/strong_resources.rb', line 11

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



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

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