Class: Strava::Errors::UploadError
- Inherits:
-
Faraday::ClientError
- Object
- Faraday::ClientError
- Strava::Errors::UploadError
- Defined in:
- lib/strava/errors/upload_error.rb
Instance Method Summary collapse
Instance Method Details
#error_status ⇒ Object
18 19 20 |
# File 'lib/strava/errors/upload_error.rb', line 18 def error_status body[:status] end |
#headers ⇒ Object
10 11 12 |
# File 'lib/strava/errors/upload_error.rb', line 10 def headers response[:headers] end |
#message ⇒ Object
14 15 16 |
# File 'lib/strava/errors/upload_error.rb', line 14 def body[:error] || super end |
#status ⇒ Object
6 7 8 |
# File 'lib/strava/errors/upload_error.rb', line 6 def status response[:status] end |
#upload ⇒ Object
22 23 24 |
# File 'lib/strava/errors/upload_error.rb', line 22 def upload @upload ||= Strava::Models::Upload.new(body) end |