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



31
32
33
# File 'lib/pinspec/runner/sandbox.rb', line 31

def env
  @env
end

#observationsObject (readonly)

Returns the value of attribute observations

Returns:

  • (Object)

    the current value of observations



31
32
33
# File 'lib/pinspec/runner/sandbox.rb', line 31

def observations
  @observations
end

#plan_idObject (readonly)

Returns the value of attribute plan_id

Returns:

  • (Object)

    the current value of plan_id



31
32
33
# File 'lib/pinspec/runner/sandbox.rb', line 31

def plan_id
  @plan_id
end

#runObject (readonly)

Returns the value of attribute run

Returns:

  • (Object)

    the current value of run



31
32
33
# File 'lib/pinspec/runner/sandbox.rb', line 31

def run
  @run
end

#stderrObject (readonly)

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



31
32
33
# File 'lib/pinspec/runner/sandbox.rb', line 31

def stderr
  @stderr
end

Instance Method Details

#observation(case_id) ⇒ Object



32
33
34
# File 'lib/pinspec/runner/sandbox.rb', line 32

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