lib/sqs/right_sqs.rb
# Retrieves security information for grantee identified by email. 
# Returns +nil+ if the named user has no privileges on this queue, or 
# +true+ if perms updated successfully. 
Retrieves security information for grantee identified by email.
Returns +nil+ if the named user has no privileges on this queue, or
+true+ if perms updated successfully.
Retrieves security information for grantee identified by email . Returns + nil + if the named user has no privileges on this queue or + true + if perms updated successfully .
def retrieve 
        @id    = nil
        @name  = nil
        @perms = []
        hash = @queue.sqs.interface.list_grants(@queue.url, @email)
        return nil if hash.empty?
        grantee = hash.shift
        @id     = grantee[0]
        @name   = grantee[1][:name]
        @perms  = grantee[1][:perms]
        true
      end
def retrieve @id = nil @name = nil @perms = [ ] hash = @queue . sqs . interface . list_grants ( @queue . url , @email ) return nil if hash . empty? grantee = hash . shift @id = grantee [ 0 ] @name = grantee [ 1 ] [ :name ] @perms = grantee [ 1 ] [ :perms ] true end
Retrieves security information for grantee identified by email.
Retrieves security information for grantee identified by email .
# :nodoc: