lib/sqs/right_sqs.rb
# Retrieves several messages from queue. 
# Returns an array of Message instances. 
#
#  queue.receive_messages(2,10) #=> array of messages
#
Retrieves several messages from queue.
Returns an array of Message instances.


Retrieves several messages from queue . Returns an array of Message instances .
def receive_messages(number_of_messages=1, visibility=nil)
        list = @sqs.interface.receive_messages(@url, number_of_messages, visibility)
        list.map! do |entry|
          msg             = Message.new(self, entry[:id], entry[:body], visibility)
          msg.received_at = Time.now 
          msg
        end
      end
def receive_messages ( number_of_messages = 1 , visibility = nil ) list = @sqs . interface . receive_messages ( @url , number_of_messages , visibility ) list . map! do | entry | msg = Message . new ( self , entry [ :id ] , entry [ :body ] , visibility ) msg . received_at = Time . now msg end end
Retrieves several messages from queue.
Retrieves several messages from queue .
number_of_messages
<not_specific>
visibility
<not_specific>