Class: Candies::Server::Json

Inherits:
Base
  • Object
show all
Defined in:
lib/candies/server/json.rb

Instance Attribute Summary

Attributes inherited from Base

#request, #responders

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Candies::Server::Base

Instance Method Details

#call(env) ⇒ Object



5
6
7
8
# File 'lib/candies/server/json.rb', line 5

def call(env)
  @request = Rack::Request.new(env)
  [status, headers, body]
end