From 0a2f65a6702f5a8424ceaf497bd70d7f27c65b43 Mon Sep 17 00:00:00 2001 From: Rogers Date: Wed, 23 Aug 2023 05:40:39 -0700 Subject: [PATCH] Remove the duplicate method named new_from_response --- lib/zendesk_api/resource.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/zendesk_api/resource.rb b/lib/zendesk_api/resource.rb index 7f64c749..d4784ab6 100644 --- a/lib/zendesk_api/resource.rb +++ b/lib/zendesk_api/resource.rb @@ -76,14 +76,6 @@ def initialize(client, attributes = {}) @attributes.clear_changes unless new_record? end - def self.new_from_response(client, response, includes = nil) - new(client).tap do |resource| - resource.handle_response(response) - resource.set_includes(resource, includes, response.body) if includes - resource.attributes.clear_changes - end - end - # Passes the method onto the attributes hash. # If the attributes are nested (e.g. { :tickets => { :id => 1 } }), passes the method onto the nested hash. def method_missing(*args, &block)