def resources(filter = {})
      filter[:root] = !filter[:root].nil? if filter.key? :root
      filter[:maxResults] = @page_size

      fetch_func = lambda do |offset|
        filter[:startOffSet] = offset
        filter_query = '?' + filter.keys.join('=%s&') + '=%s' unless filter.empty?
        http_get(url("/resources#{filter_query}", *filter.values))
      end
      ResultFetcher.new(fetch_func).map { |r| Resource.new(r) }
    end
def resources(filter = {})
      filter[:root] = !filter[:root].nil? if filter.key? :root
      filter[:maxResults] = @page_size

      fetch_func = lambda do |offset|
        filter[:startOffSet] = offset
        filter_query = '?' + filter.keys.join('=%s&') + '=%s' unless filter.empty?
        http_get(url("/resources#{filter_query}", *filter.values))
      end
      ResultFetcher.new(fetch_func).map { |r| Resource.new(r) }
    end
List resources
 @param [Hash] filter options to filter the resource list
 @option filter :root If truthy, only get root resources
 @option filter :feedId Filter by feed id
 @option filter :typeId Filter by type id
 @return [Enumeration<Resource>] Lazy-loaded Enumeration of resources