lib/ury_rapid/server/updater.rb
def pack_and_send(update)
        resource, repr = update
        return unless @privileges && resource.can?(:get, @privileges)
        send_json(type: :update, resource.url => repr)
      end
# Packs and sends an update
#
# The update will be sent if, and only if, this Updater has sufficient
# privileges to GET the updated resource.
#
# @api  private
#
# @param update [List]
#   A pair of the resource that has been updated, and a representation of
#   the update on the resource that should be sent through the Updater.
#
# @return [void]
Packs and sends an update
The update will be sent if, and only if, this Updater has sufficient
privileges to GET the updated resource.
Packs and sends an update The update will be sent if and only if this Updater has sufficient privileges to GET the updated resource .
def pack_and_send(update)
        resource, repr = update
        return unless @privileges && resource.can?(:get, @privileges)
        send_json(type: :update, resource.url => repr)
      end
def pack_and_send ( update ) resource , repr = update return unless @privileges && resource . can? ( :get , @privileges ) send_json ( type : :update , resource . url => repr ) end
Packs and sends an update
The update will be sent if, and only if, this Updater has sufficient
privileges to GET the updated resource.
Packs and sends an update The update will be sent if and only if this Updater has sufficient privileges to GET the updated resource .
None
void
update
A pair of the resource that has been updated, and a representation of the update on the resource that should be sent through the Updater.
A pair of the resource that has been updated and a representation of the update on the resource that should be sent through the Updater .
api
None