Module: Urist
- Defined in:
- lib/urist.rb,
lib/urist/base.rb,
lib/urist/runner.rb,
lib/urist/scenario.rb,
lib/urist/uber_waffel.rb
Overview
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!
Defined Under Namespace
Modules: UberWaffel Classes: Base, Runner, Scenario
Class Method Summary collapse
Class Method Details
.new(options = {}) ⇒ Object
34 35 36 |
# File 'lib/urist.rb', line 34 def self.new ={} Base.new end |