Class: Gemical::Connection::HTTPUnprocessable

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/gemical/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HTTPUnprocessable

Returns a new instance of HTTPUnprocessable.



16
17
18
19
# File 'lib/gemical/connection.rb', line 16

def initialize(response)
  @response = response
  super "Unprocessable Entity (422)"
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/gemical/connection.rb', line 14

def response
  @response
end