Method: Res::IR#initialize

Defined in:
lib/res/ir.rb

#initialize(options = {}) ⇒ IR

Expects hash of: :results => { } :type => test_runner :start_time => Time the tests started :end_time => Time they completed



19
20
21
22
23
24
25
# File 'lib/res/ir.rb', line 19

def initialize( options = {} )
  @results     = options[:results]     or raise "No results data"
  @type        = options[:type]        or raise "No type provided (e.g. 'Cucumber')"
  @started     = options[:started]     or raise "Need to provide a start time"
  @finished    = options[:finished]    or raise "Need to provide an end time"
  @values      = initialize_values( options[:values], options[:results] )
end