lib/horseman/action.rb in horseman-0.0.4 vs lib/horseman/action.rb in horseman-0.0.5
- old
+ new
@@ -4,10 +4,10 @@
class Action
attr_reader :uri, :response
def initialize(uri, response=nil)
@uri = uri
- @response = Horseman::Response.new(response.body, response.to_hash) unless response.nil?
+ @response = Response.new(response.body, response.to_hash) unless response.nil?
end
def url
"#{@uri.scheme}://#{@uri.host}#{@uri.path}" + (@uri.query ? "?#{@uri.query}" : "")
end
\ No newline at end of file