Sha256: cec7b89cdadfb9c64af527238a90e0356d7ad45c5bdef7d9bd4dbae4b92d1f6c
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
{"message"=>"Authorization Error", "errors"=>[{"resource"=>"AccessToken", "field"=>"write_permission", "code"=>"missing"}]} module Strava class Error < StandardError attr_accessor :response, :strava_errors end class AccessError < Error def initialize(response) message = response['message'] strava_errors = response['errors'] super(message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strava-0.1.0 | lib/strava/error.rb |