Class: TurboTests::FakeException
- Inherits:
-
Struct
- Object
- Struct
- TurboTests::FakeException
- Defined in:
- lib/turbo_tests.rb,
lib/turbo_tests.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#cause ⇒ Object
Returns the value of attribute cause.
-
#message ⇒ Object
Returns the value of attribute message.
Class Method Summary collapse
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace
21 22 23 |
# File 'lib/turbo_tests.rb', line 21 def backtrace @backtrace end |
#cause ⇒ Object
Returns the value of attribute cause
21 22 23 |
# File 'lib/turbo_tests.rb', line 21 def cause @cause end |
#message ⇒ Object
Returns the value of attribute message
21 22 23 |
# File 'lib/turbo_tests.rb', line 21 def @message end |
Class Method Details
.from_obj(obj) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/turbo_tests.rb', line 23 def self.from_obj(obj) if obj obj = obj.symbolize_keys klass = Class.new(FakeException) { define_singleton_method(:name) { obj[:class_name] } } klass.new(obj[:backtrace], obj[:message], FakeException.from_obj(obj[:cause])) end end |