Sha256: 5492e4bd799386acdeaf48dcc816f60d522c6c77a73948010673e05e622d0c01

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

$: << File.dirname(__FILE__)

require 'alephant/broker'
require 'alephant/broker/models/request'

module Alephant
  module Broker
    class Application
      def initialize(config)
        @config = config
      end

      def handle(request)
        Alephant::Broker.handle(request, @config)
      end

      def request_from(path, querystring)
        Request.new(path, querystring)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alephant-broker-0.0.2 lib/alephant/broker/app.rb
alephant-broker-0.0.1 lib/alephant/broker/app.rb