Class: Urist::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/urist/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
# File 'lib/urist/base.rb', line 5

def initialize options={}
  @runner = Runner.new options
end

Instance Attribute Details

#runnerObject

Returns the value of attribute runner.



3
4
5
# File 'lib/urist/base.rb', line 3

def runner
  @runner
end

Instance Method Details

#go!Object

starts script execution



10
11
12
# File 'lib/urist/base.rb', line 10

def go!
  @runner.go!
end

#logsObject

returns all results from all performed scenarios



20
21
22
# File 'lib/urist/base.rb', line 20

def logs
  @runner.log
end

#scenariosObject

returns all performed scenarios



15
16
17
# File 'lib/urist/base.rb', line 15

def scenarios
  @runner.done_scenarios
end