def resource(path, params={})
      r = Resource.process_detailed(self, *do_get(path, params))

      # note that process_detailed will make a best-effort to return an already
      # detailed resource or array of detailed resources but there may still be
      # legacy cases where #show is still needed. calling #show on an already
      # detailed resource is a no-op.
      r.respond_to?(:show) ? r.show : r
    end
def resource(path, params={})
      r = Resource.process_detailed(self, *do_get(path, params))

      # note that process_detailed will make a best-effort to return an already
      # detailed resource or array of detailed resources but there may still be
      # legacy cases where #show is still needed. calling #show on an already
      # detailed resource is a no-op.
      r.respond_to?(:show) ? r.show : r
    end
Given a path returns a RightApiClient::Resource instance.