class CucumberSteps::REST
Public Class Methods
new(*middlewares)
click to toggle source
# File lib/cucumber_steps/rest.rb, line 11 def initialize(*middlewares) @connection = Faraday.new do |b| middlewares.each { |prop| b.use(prop[:class],*prop[:args],&prop[:block]) } b.adapter Faraday.default_adapter end end