Class: Perchfall::Rails::SyntheticRun
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Perchfall::Rails::SyntheticRun
- Defined in:
- app/models/perchfall/rails/synthetic_run.rb,
app/services/perchfall/rails/synthetic_run/persist.rb
Defined Under Namespace
Classes: Persist
Constant Summary collapse
- STATUSES =
%w[ok failed error].freeze
Instance Method Summary collapse
- #console_errors ⇒ Object
- #failed? ⇒ Boolean
- #ignored_console_errors ⇒ Object
- #ignored_network_errors ⇒ Object
- #network_errors ⇒ Object
- #ok? ⇒ Boolean
Instance Method Details
#console_errors ⇒ Object
22 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 22 def console_errors = raw_report["console_errors"] || [] |
#failed? ⇒ Boolean
19 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 19 def failed? = !ok? |
#ignored_console_errors ⇒ Object
24 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 24 def ignored_console_errors = raw_report["ignored_console_errors"] || [] |
#ignored_network_errors ⇒ Object
23 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 23 def ignored_network_errors = raw_report["ignored_network_errors"] || [] |
#network_errors ⇒ Object
21 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 21 def network_errors = raw_report["network_errors"] || [] |
#ok? ⇒ Boolean
18 |
# File 'app/models/perchfall/rails/synthetic_run.rb', line 18 def ok? = status == "ok" |