Module: FreshdeskAPI::ResponseHandler
- Included in:
- Save
- Defined in:
- lib/freshdesk_api/actions.rb
Instance Method Summary collapse
Instance Method Details
#handle_response(response) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/freshdesk_api/actions.rb', line 4 def handle_response(response) response = MultiJson.load(response, symbolize_keys: true) if response[response_namespace] @attributes.replace(@attributes.deep_merge(response[response_namespace])) end end |