Exception: ActiveResource::MethodNotAllowed

Inherits:
ClientError show all
Defined in:
lib/active_resource/connection.rb,
lib/active_resource/exceptions.rb

Overview

405 Method Not Allowed

Instance Attribute Summary

Attributes inherited from ConnectionError

#response

Instance Method Summary collapse

Methods inherited from ConnectionError

#initialize, #to_s

Constructor Details

This class inherits a constructor from ActiveResource::ConnectionError

Instance Method Details

#allowed_methodsObject

:nodoc:



68
69
70
# File 'lib/active_resource/connection.rb', line 68

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