Class: Riveter::Run

Inherits:
Model
  • Object
show all
Defined in:
lib/riveter/models.rb

Overview

The uniform run envelope returned by kickoffs and every /runs endpoint. Endpoint-specific kickoff extras (dataset_id, credits_charged, ...) are plain fields; #output is nil until the run finishes.

Instance Attribute Summary

Attributes inherited from Model

#raw

Instance Method Summary collapse

Methods inherited from Model

#[], field, #initialize, #inspect, model_field, #to_h

Constructor Details

This class inherits a constructor from Riveter::Model

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/riveter/models.rb', line 56

def finished?
  %w[success stopped].include?(status)
end