Class: PeopleDoc::ResponseHandlers::V1::HandleBadRequest::MessageResponse
- Inherits:
-
Object
- Object
- PeopleDoc::ResponseHandlers::V1::HandleBadRequest::MessageResponse
- Defined in:
- lib/people_doc/response_handlers.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response) ⇒ MessageResponse
constructor
A new instance of MessageResponse.
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
#call ⇒ Object
91 92 93 |
# File 'lib/people_doc/response_handlers.rb', line 91 def call @response.parsed_response['message'] end |