Class: Dsapi::Operations::ParseJsonResponse
- Inherits:
-
Object
- Object
- Dsapi::Operations::ParseJsonResponse
- Includes:
- Dry::Transaction::Operation
- Defined in:
- lib/dsapi/operations/parse_json_response.rb
Instance Method Summary collapse
Instance Method Details
#call(response_body) ⇒ Object
11 12 13 14 15 |
# File 'lib/dsapi/operations/parse_json_response.rb', line 11 def call(response_body) hash = JSON.parse response_body Success(hash) end |