Exception: Ridley::Errors::HTTPUnknownMethod

Inherits:
HTTPError show all
Defined in:
lib/ridley/errors.rb

Instance Attribute Summary collapse

Attributes inherited from HTTPError

#env, #errors, #message

Instance Method Summary collapse

Methods inherited from HTTPError

error_map, fabricate, lookup_error, register_error

Constructor Details

#initialize(method) ⇒ HTTPUnknownMethod

Returns a new instance of HTTPUnknownMethod.



140
141
142
143
# File 'lib/ridley/errors.rb', line 140

def initialize(method)
  @method  = method
  @message = "unknown http method: #{method}"
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



138
139
140
# File 'lib/ridley/errors.rb', line 138

def method
  @method
end