Class: Pinspec::Runner::Sandbox::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/runner/sandbox.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env

Returns:

  • (Object)

    the current value of env



34
35
36
# File 'lib/pinspec/runner/sandbox.rb', line 34

def env
  @env
end

#observationsObject (readonly)

Returns the value of attribute observations

Returns:

  • (Object)

    the current value of observations



34
35
36
# File 'lib/pinspec/runner/sandbox.rb', line 34

def observations
  @observations
end

#plan_idObject (readonly)

Returns the value of attribute plan_id

Returns:

  • (Object)

    the current value of plan_id



34
35
36
# File 'lib/pinspec/runner/sandbox.rb', line 34

def plan_id
  @plan_id
end

#runObject (readonly)

Returns the value of attribute run

Returns:

  • (Object)

    the current value of run



34
35
36
# File 'lib/pinspec/runner/sandbox.rb', line 34

def run
  @run
end

#stderrObject (readonly)

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



34
35
36
# File 'lib/pinspec/runner/sandbox.rb', line 34

def stderr
  @stderr
end

Instance Method Details

#observation(case_id) ⇒ Object



35
36
37
# File 'lib/pinspec/runner/sandbox.rb', line 35

def observation(case_id)
  observations.find { |o| o["case_id"] == case_id }
end