Exception: Strava::AccessError

Inherits:
Error
  • Object
show all
Defined in:
lib/strava/error.rb

Instance Attribute Summary

Attributes inherited from Error

#response, #strava_errors

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ AccessError

Returns a new instance of AccessError.



9
10
11
12
13
# File 'lib/strava/error.rb', line 9

def initialize(response)
  message = response['message']
  strava_errors = response['errors']
  super(message)
end