Class: RSpec::Rewind::Event
- Inherits:
-
Object
- Object
- RSpec::Rewind::Event
- Defined in:
- lib/rspec/rewind/event.rb
Constant Summary collapse
- FIELDS =
%i[ schema_version status retry_reason decision_reason example_id description location attempt retries max_attempts exception_class exception_message exception_backtrace_top failure_fingerprint duration total_duration attempt_durations first_failure_duration sleep_seconds scheduled_sleep_seconds actual_sleep_seconds sleep_total timestamp budget_limit budget_used budget_remaining matched_retry_on matched_skip_retry_on matcher_error metadata ].freeze
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ Event
constructor
A new instance of Event.
- #to_h ⇒ Object
Constructor Details
Instance Method Details
#to_h ⇒ Object
51 52 53 54 55 |
# File 'lib/rspec/rewind/event.rb', line 51 def to_h FIELDS.to_h do |field| [field, public_send(field)] end end |