Class: ActiveError::Captor
- Inherits:
-
Object
- Object
- ActiveError::Captor
- Defined in:
- lib/active_error/captor.rb
Instance Method Summary collapse
- #capture ⇒ Object
-
#initialize(exception:, request:, capture_instance: true) ⇒ Captor
constructor
A new instance of Captor.
Constructor Details
#initialize(exception:, request:, capture_instance: true) ⇒ Captor
Returns a new instance of Captor.
13 14 15 16 17 |
# File 'lib/active_error/captor.rb', line 13 def initialize(exception:, request:, capture_instance: true) @exception = exception @request = request @capture_instance = capture_instance end |
Instance Method Details
#capture ⇒ Object
19 20 21 22 |
# File 'lib/active_error/captor.rb', line 19 def capture create_instance if capture_instance? fault end |