lib/duracloud/response.rb in duracloud-client-0.9.1 vs lib/duracloud/response.rb in duracloud-client-0.10.0

- old
+ new

@@ -6,16 +6,14 @@ extend Forwardable attr_reader :original_response delegate [:header, :body, :code, :ok?, :redirect?, :status, :reason] => :original_response, - :content_type => :header, + [:content_type, :request_method, :request_uri, :request_query] => :header, :empty? => :body def_delegator :header, :request_uri, :url - def_delegator :header, :request_method - def_delegator :header, :request_query def initialize(original_response) @original_response = original_response end @@ -47,7 +45,8 @@ end def modified DateTime.parse(header["last-modified"].first) rescue nil end + end end