Exception: Camcorder::ProxyRecordingError
- Defined in:
- lib/camcorder/errors.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#side_effects ⇒ Object
readonly
Returns the value of attribute side_effects.
Instance Method Summary collapse
-
#initialize(klass, name, args, side_effects) ⇒ ProxyRecordingError
constructor
A new instance of ProxyRecordingError.
- #message ⇒ Object
Constructor Details
#initialize(klass, name, args, side_effects) ⇒ ProxyRecordingError
Returns a new instance of ProxyRecordingError.
17 18 19 20 21 22 |
# File 'lib/camcorder/errors.rb', line 17 def initialize(klass, name, args, side_effects) @klass = klass @name = name @args = args @side_effects = side_effects end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
16 17 18 |
# File 'lib/camcorder/errors.rb', line 16 def args @args end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
16 17 18 |
# File 'lib/camcorder/errors.rb', line 16 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/camcorder/errors.rb', line 16 def name @name end |
#side_effects ⇒ Object (readonly)
Returns the value of attribute side_effects.
16 17 18 |
# File 'lib/camcorder/errors.rb', line 16 def side_effects @side_effects end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/camcorder/errors.rb', line 23 def "Recording for #{klass}.#{name} with args: #{args} and side_effects=#{side_effects} has changed. Consider using using `methods_with_side_effects`." end |