Class: Rack::TradeTracker
- Inherits:
-
Object
- Object
- Rack::TradeTracker
- Defined in:
- lib/rack/trade_tracker.rb,
lib/rack/trade_tracker/cookie.rb,
lib/rack/trade_tracker/handler.rb,
lib/rack/trade_tracker/version.rb,
lib/rack/trade_tracker/parameters.rb,
lib/rack/trade_tracker/parameters/paired.rb,
lib/rack/trade_tracker/parameters/delimited.rb
Defined Under Namespace
Classes: Cookie, Handler, Parameters
Constant Summary collapse
- TRACKBACK_URL =
'http://tc.tradetracker.net'.freeze
- InitializationError =
Class.new(RuntimeError)
- VERSION =
"0.1.3"
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ TradeTracker
constructor
A new instance of TradeTracker.
Constructor Details
#initialize(app, options = {}) ⇒ TradeTracker
Returns a new instance of TradeTracker.
12 13 14 15 16 |
# File 'lib/rack/trade_tracker.rb', line 12 def initialize(app, = {}) @app = app raise InitializationError.new('options must include :domain') unless (@domain = [:domain]) raise InitializationError.new('options must include :path') unless (@path = [:path]) end |