Class: RSpecSystem::Result

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/rspec-system/result.rb

Overview

This class represents raw results from a helper command

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object

Returns the value of a member, with hash syntax.

Parameters:

  • name (String, Symbol)

    name of parameter to retrieve



10
11
12
# File 'lib/rspec-system/result.rb', line 10

def [](name)
  @table[name.to_sym]
end

#to_hashHash

Return a hash

Returns:

  • (Hash)

    a hash representation of the results



17
18
19
# File 'lib/rspec-system/result.rb', line 17

def to_hash
  @table
end