lib/strava/errors/fault.rb in strava-ruby-client-0.3.1 vs lib/strava/errors/fault.rb in strava-ruby-client-0.3.2
- old
+ new
@@ -3,9 +3,13 @@
class Fault < ::Faraday::ClientError
def message
response[:body]['message'] || super
end
+ def headers
+ response[:headers]
+ end
+
def errors
response[:body]['errors']
end
end
end