lib/pacto/request.rb in pacto-0.2.5 vs lib/pacto/request.rb in pacto-0.3.0.pre
- old
+ new
@@ -1,16 +1,14 @@
module Pacto
class Request
+ attr_reader :host
+
def initialize(host, definition)
@host = host
@definition = definition
end
- def host
- @host
- end
-
def method
@definition['method'].to_s.downcase.to_sym
end
def path
@@ -45,9 +43,10 @@
})
ResponseAdapter.new(response)
end
private
+
def httparty_params_key
method == :get ? :query : :body
end
def normalized_params