Exception: ApiResource::MethodNotAllowed

Inherits:
ClientError show all
Defined in:
lib/api_resource/exceptions.rb

Overview

405 Method Not Allowed

Instance Attribute Summary

Attributes inherited from ConnectionError

#response

Instance Method Summary collapse

Methods inherited from ConnectionError

#http_code, #initialize, #to_s

Constructor Details

This class inherits a constructor from ApiResource::ConnectionError

Instance Method Details

#allowed_methodsObject



95
96
97
# File 'lib/api_resource/exceptions.rb', line 95

def allowed_methods
  @response['Allow'].split(',').map { |verb| verb.strip.downcase.to_sym }
end