Class: Rhinestone::App

Inherits:
Goliath::API
  • Object
show all
Defined in:
lib/rhinestone/app.rb

Instance Method Summary collapse

Constructor Details

#initializeApp

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