Class: Mole::Transport::SuckerPunch

Inherits:
Object
  • Object
show all
Defined in:
lib/orwell/mole/transport/sucker_punch.rb

Defined Under Namespace

Classes: AsyncWrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ SuckerPunch

Returns a new instance of SuckerPunch.



17
18
19
# File 'lib/orwell/mole/transport/sucker_punch.rb', line 17

def initialize(opts = {})
  @request_options = opts
end

Instance Attribute Details

#request_optionsObject (readonly)

Returns the value of attribute request_options.



15
16
17
# File 'lib/orwell/mole/transport/sucker_punch.rb', line 15

def request_options
  @request_options
end

Instance Method Details

#perform(event) ⇒ Object



21
22
23
# File 'lib/orwell/mole/transport/sucker_punch.rb', line 21

def perform(event)
  AsyncWrapper.new.perform(event, request_options)
end