Class: Strava::Errors::UploadError

Inherits:
Faraday::ClientError
  • Object
show all
Defined in:
lib/strava/errors/upload_error.rb

Instance Method Summary collapse

Instance Method Details

#error_statusObject



18
19
20
# File 'lib/strava/errors/upload_error.rb', line 18

def error_status
  body[:status]
end

#headersObject



10
11
12
# File 'lib/strava/errors/upload_error.rb', line 10

def headers
  response[:headers]
end

#messageObject



14
15
16
# File 'lib/strava/errors/upload_error.rb', line 14

def message
  body[:error] || super
end

#statusObject



6
7
8
# File 'lib/strava/errors/upload_error.rb', line 6

def status
  response[:status]
end

#uploadObject



22
23
24
# File 'lib/strava/errors/upload_error.rb', line 22

def upload
  @upload ||= Strava::Models::Upload.new(body)
end