Class: WhenAUser::Rack
- Inherits:
-
Object
- Object
- WhenAUser::Rack
- Defined in:
- lib/whenauser.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app, options = {}) ⇒ Rack
Returns a new instance of Rack.
92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/whenauser.rb', line 92 def initialize(app, ={}) @app = app WhenAUser.logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) WhenAUser.webhook_url = [:webhook_url] || 'http://www.whenauser.com/events/' WhenAUser.buffer = [] WhenAUser.filter_parameters = defined?(Rails) ? Rails.application.config.filter_parameters : [] WhenAUser.token = [:token] WhenAUser.queue = [:queue] || WhenAUser::MemoryQueue WhenAUser. = [:queue_options] || {} WhenAUser.controller_data = [:controller_data] || '{}' end |