lib/intercom/client_collection_proxy.rb in intercom-3.0.3 vs lib/intercom/client_collection_proxy.rb in intercom-3.0.4
- old
+ new
@@ -2,11 +2,11 @@
require "ext/sliceable_hash"
module Intercom
class ClientCollectionProxy
- attr_reader :resource_name
+ attr_reader :resource_name, :finder_url, :resource_class
def initialize(resource_name, finder_details: {}, client:)
@resource_name = resource_name
@resource_class = Utils.constantize_resource_name(resource_name)
@finder_url = (finder_details[:url] || "/#{@resource_name}")
@@ -38,11 +38,9 @@
end
include Enumerable
private
-
- def resource_class; @resource_class; end
def deserialize_response_hash(response_hash, block)
top_level_type = response_hash.delete('type')
if resource_name == 'subscriptions'
top_level_entity_key = 'items'