Class: Txdb::Handlers::Triggers::Handler

Inherits:
Object
  • Object
show all
Includes:
ResponseHelpers
Defined in:
lib/txdb/handlers/triggers/handler.rb

Direct Known Subclasses

PullHandler, PushHandler

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ Handler



15
16
17
# File 'lib/txdb/handlers/triggers/handler.rb', line 15

def initialize(request)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



13
14
15
# File 'lib/txdb/handlers/triggers/handler.rb', line 13

def request
  @request
end

Class Method Details

.handle_request(request) ⇒ Object



8
9
10
# File 'lib/txdb/handlers/triggers/handler.rb', line 8

def handle_request(request)
  new(request).handle
end