Class: Mole::Transport::Sidekiq
- Inherits:
-
Object
- Object
- Mole::Transport::Sidekiq
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/orwell/mole/transport/sidekiq.rb
Instance Attribute Summary collapse
-
#request_options ⇒ Object
readonly
Returns the value of attribute request_options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Sidekiq
constructor
A new instance of Sidekiq.
- #perform(event) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Sidekiq
Returns a new instance of Sidekiq.
10 11 12 |
# File 'lib/orwell/mole/transport/sidekiq.rb', line 10 def initialize(opts = {}) @request_options = opts end |
Instance Attribute Details
#request_options ⇒ Object (readonly)
Returns the value of attribute request_options.
8 9 10 |
# File 'lib/orwell/mole/transport/sidekiq.rb', line 8 def @request_options end |
Class Method Details
Instance Method Details
#perform(event) ⇒ Object
14 15 16 |
# File 'lib/orwell/mole/transport/sidekiq.rb', line 14 def perform(event) Sidekiq.delay.perform_http(event, ) end |