Sha256: cd4b8086d35067cc16722b89f70e7c04a3532a5d50bf03ad1c14cfa4345730c9

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

module Cucumber
  module WireSupport
    class RequestHandler
      def initialize(connection, message, &block)
        @connection = connection
        @message = message
        instance_eval(&block) if block
      end

      def execute(request_params)
        @connection.call_remote(self, @message, request_params)
      end

      def handle_fail(params)
        raise WireException.new(params)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
cucumber-0.4.5.rc2 lib/cucumber/wire_support/request_handler.rb
kbaum-cucumber-0.4.5.pre lib/cucumber/wire_support/request_handler.rb
cucumber-0.4.5.rc1 lib/cucumber/wire_support/request_handler.rb
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/wire_support/request_handler.rb
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/wire_support/request_handler.rb
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/wire_support/request_handler.rb
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/wire_support/request_handler.rb
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/lib/cucumber/wire_support/request_handler.rb
cucumber-0.4.4 lib/cucumber/wire_support/request_handler.rb
cucumber-0.4.3 lib/cucumber/wire_support/request_handler.rb