Class: Whenauser::RailsConfigurator
- Inherits:
-
Object
- Object
- Whenauser::RailsConfigurator
- Defined in:
- lib/whenauser/railtie.rb
Instance Attribute Summary collapse
-
#controller_data(data) ⇒ Object
Returns the value of attribute controller_data.
-
#middlewares ⇒ Object
Returns the value of attribute middlewares.
-
#queue(queue, options) ⇒ Object
Returns the value of attribute queue.
-
#queue_options ⇒ Object
Returns the value of attribute queue_options.
-
#token(token) ⇒ Object
Returns the value of attribute token.
-
#webhook_url(webhook_url) ⇒ Object
Returns the value of attribute webhook_url.
Instance Method Summary collapse
- #girl_friday_options(options) ⇒ Object
-
#initialize ⇒ RailsConfigurator
constructor
A new instance of RailsConfigurator.
- #middleware(middleware, &block) ⇒ Object
Constructor Details
#initialize ⇒ RailsConfigurator
Returns a new instance of RailsConfigurator.
7 8 9 10 |
# File 'lib/whenauser/railtie.rb', line 7 def initialize @webhook_url = 'http://www.whenauser.com/events/' @middlewares = {} end |
Instance Attribute Details
#controller_data(data) ⇒ Object
Returns the value of attribute controller_data.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def controller_data @controller_data end |
#middlewares ⇒ Object
Returns the value of attribute middlewares.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def middlewares @middlewares end |
#queue(queue, options) ⇒ Object
Returns the value of attribute queue.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def queue @queue end |
#queue_options ⇒ Object
Returns the value of attribute queue_options.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def @queue_options end |
#token(token) ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def token @token end |
#webhook_url(webhook_url) ⇒ Object
Returns the value of attribute webhook_url.
6 7 8 |
# File 'lib/whenauser/railtie.rb', line 6 def webhook_url @webhook_url end |
Instance Method Details
#girl_friday_options(options) ⇒ Object
33 34 35 |
# File 'lib/whenauser/railtie.rb', line 33 def () @girl_friday_options = end |
#middleware(middleware, &block) ⇒ Object
20 21 22 |
# File 'lib/whenauser/railtie.rb', line 20 def middleware(middleware, &block) @middlewares[middleware] = MiddlewareConfigurator.apply(&block) end |