Class: Rhinestone::App
- Inherits:
-
Goliath::API
- Object
- Goliath::API
- Rhinestone::App
- Defined in:
- lib/rhinestone/app.rb
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #response(env) ⇒ Object
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
3 4 5 |
# File 'lib/rhinestone/app.rb', line 3 def initialize @server = Rhinestone.server end |
Instance Method Details
#response(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/rhinestone/app.rb', line 7 def response(env) response = @server.get("#{env['REQUEST_PATH']}?#{env['QUERY_STRING']}") [response.status, response.headers, response.body] end |