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)