Exception: LazyResource::MethodNotAllowed
- Inherits:
-
ClientError
- Object
- StandardError
- ConnectionError
- ClientError
- LazyResource::MethodNotAllowed
- Defined in:
- lib/lazy_resource/errors.rb
Overview
405 Method Not Allowed
Instance Attribute Summary
Attributes inherited from ConnectionError
Instance Method Summary collapse
-
#allowed_methods ⇒ Object
:nodoc:.
Methods inherited from ConnectionError
Constructor Details
This class inherits a constructor from LazyResource::ConnectionError
Instance Method Details
#allowed_methods ⇒ Object
:nodoc:
68 69 70 |
# File 'lib/lazy_resource/errors.rb', line 68 def allowed_methods @response.headers['Allow'].split(',').map { |verb| verb.strip.downcase.to_sym } end |