Class: Perchfall::Rails::SyntheticRun

Inherits:
ActiveRecord::Base
  • Object
show all
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

Instance Method Details

#console_errorsObject



22
# File 'app/models/perchfall/rails/synthetic_run.rb', line 22

def console_errors         = raw_report["console_errors"] || []

#failed?Boolean

Returns:

  • (Boolean)


19
# File 'app/models/perchfall/rails/synthetic_run.rb', line 19

def failed? = !ok?

#ignored_console_errorsObject



24
# File 'app/models/perchfall/rails/synthetic_run.rb', line 24

def ignored_console_errors = raw_report["ignored_console_errors"] || []

#ignored_network_errorsObject



23
# File 'app/models/perchfall/rails/synthetic_run.rb', line 23

def ignored_network_errors = raw_report["ignored_network_errors"] || []

#network_errorsObject



21
# File 'app/models/perchfall/rails/synthetic_run.rb', line 21

def network_errors         = raw_report["network_errors"] || []

#ok?Boolean

Returns:

  • (Boolean)


18
# File 'app/models/perchfall/rails/synthetic_run.rb', line 18

def ok?     = status == "ok"