samvera / ldp

Linked Data Platform.rb client
Other
16 stars 15 forks source link

Calling .dup on a wrapped Faraday::Response, doesn't add the wrapped methods #39

Closed jcoyne closed 9 years ago

jcoyne commented 9 years ago
raw_resp.class
# => Faraday::Response
raw_resp.method(:links)
# => #<Method: Faraday::Response(Ldp::Response)#links>
raw_resp.dup.method(:links)
NameError Exception: undefined method `links' for class `Faraday::Response'