Class: PeopleDoc::ResponseHandlers::V1::HandleBadRequest::MessageResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ MessageResponse

Returns a new instance of MessageResponse.



87
88
89
# File 'lib/people_doc/response_handlers.rb', line 87

def initialize(response)
  @response = response
end

Instance Method Details

#callObject



91
92
93
# File 'lib/people_doc/response_handlers.rb', line 91

def call
  @response.parsed_response['message']
end