Exception: Acfs::AmbiguousStubError
- Defined in:
- lib/acfs/errors.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#stubs ⇒ Object
readonly
Returns the value of attribute stubs.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ AmbiguousStubError
constructor
A new instance of AmbiguousStubError.
Constructor Details
#initialize(opts = {}) ⇒ AmbiguousStubError
Returns a new instance of AmbiguousStubError.
56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/acfs/errors.rb', line 56 def initialize(opts = {}) require 'pp' @stubs = opts.delete :stubs @operation = opts.delete :operation = "Ambiguous stubs for #{operation.action} " \ "on #{operation.resource}.\n" + stubs.map {|s| " #{s.opts.pretty_inspect}" }.join super(opts, ) end |
Instance Attribute Details
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
54 55 56 |
# File 'lib/acfs/errors.rb', line 54 def operation @operation end |
#stubs ⇒ Object (readonly)
Returns the value of attribute stubs.
54 55 56 |
# File 'lib/acfs/errors.rb', line 54 def stubs @stubs end |