Class: PhraseApp::ValidationErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/request_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ ValidationErrorResponse

Returns a new instance of ValidationErrorResponse.



22
23
24
25
# File 'lib/request_handler.rb', line 22

def initialize(http_response)
  hash = JSON.load(http_response.body)
  puts hash.inspect
end

Instance Attribute Details

#error_response ⇒ Object

Returns the value of attribute error_response.



19
20
21
# File 'lib/request_handler.rb', line 19

def error_response
  @error_response
end

#errors ⇒ Object

Returns the value of attribute errors.



20
21
22
# File 'lib/request_handler.rb', line 20

def errors
  @errors
end