Sha256: 98489ed329bf2214450dfc392e6de7d0c0d0fab548321c1a0cfa0102f684716a

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

module Strava
  module Errors
    class Fault < ::Faraday::ClientError
      def message
        response[:body]['message'] || super
      end

      def headers
        response[:headers]
      end

      def errors
        response[:body]['errors']
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strava-ruby-client-0.4.2 lib/strava/errors/fault.rb
strava-ruby-client-0.4.1 lib/strava/errors/fault.rb
strava-ruby-client-0.4.0 lib/strava/errors/fault.rb
strava-ruby-client-0.3.2 lib/strava/errors/fault.rb