module Urist
How to use: ==¶ ↑
-
Fetch all the data you need:
client = Client.needed_now # instance of some class price = 10000.65 # numbers products = client.products # arrays
-
Assemble them into hash:
information = {:client => client, :price => price, :products => products}
-
Create new runner and, well, run it:
runner = Urist.new(:startup_scenario => NewAndLongScenario, :information => information) result = runner.go!
-
Extract the decision and other parameters from result:
decision = result[:decision] description = result[:description] limit = result[:limit]
-
Capture all execution logs
log = runner.logs # array with all results
-
Summarize all executed scenarios
scenarios = runner.scenarios # array with all executed scenarios
-
You're done!
Public Class Methods
new(options={})
click to toggle source
# File lib/urist.rb, line 34 def self.new options={} Base.new options end