Class: Sliver::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/sliver/hook.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, response) ⇒ Hook

Returns a new instance of Hook.



8
9
10
11
# File 'lib/sliver/hook.rb', line 8

def initialize(action, response)
  @action   = action
  @response = response
end

Class Method Details

.call(action, response) ⇒ Object



4
5
6
# File 'lib/sliver/hook.rb', line 4

def self.call(action, response)
  new(action, response).call
end