module ZendeskAPI::ResponseHandler
Public Instance Methods
handle_response(response)
click to toggle source
# File lib/zendesk_api/actions.rb, line 3 def handle_response(response) if response.body.is_a?(Hash) && response.body[self.class.singular_resource_name] @attributes.replace(@attributes.deep_merge(response.body[self.class.singular_resource_name])) end end