Class: Rhosync::BaseEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/rhosync/endpoints.rb

Direct Known Subclasses

Authenticate, Create, Delete, Query, Update

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



97
98
99
100
# File 'lib/rhosync/endpoints.rb', line 97

def self.call(env)
  req = Rack::Request.new(env)
  Rhosync::EndpointHelpers.send(self.to_s.downcase.split("::")[1].to_sym, req.content_type, req.body.read)
end