lib/eac_rest/response.rb in eac_rest-0.7.0 vs lib/eac_rest/response.rb in eac_rest-0.7.1
- old
+ new
@@ -76,11 +76,11 @@
def status
performed.status.to_i
end
- delegate :url, to: :curl
+ delegate :url, to: :request
def to_s
"URL: #{url}\nStatus: #{status}\nBody:\n\n#{body_str}"
end
@@ -101,10 +101,10 @@
end
nil
end
def performed
- @performed_curl ||= request.faraday_response
+ @performed ||= request.faraday_response
rescue ::Faraday::Error
raise ::EacRest::Error
end
end
end