def exposes(object, options = {})
      if Respondable.paginated?(object)
        paginated object, options
      elsif Respondable.collection?(object)
        collection object, options
      else
        if Respondable.invalid?(object)
          error! :invalid_resource, object.errors
        else
          resource object, options
        end
      end
    end
def exposes(object, options = {})
      if Respondable.paginated?(object)
        paginated object, options
      elsif Respondable.collection?(object)
        collection object, options
      else
        if Respondable.invalid?(object)
          error! :invalid_resource, object.errors
        else
          resource object, options
        end
      end
    end
Exposes an object to the response - Essentiall, it tells the
 controller that this is what we need to render.