README.markdown in ironmq-1.2.5 vs README.markdown in ironmq-1.2.6

- old
+ new

@@ -8,33 +8,33 @@ gem install ironmq Create an IronMQ client object: - @client = IronMQ::Client.new('token'=>'MYTOKEN', 'project_id'=>'MYPROJECTID') + @ironmq = IronMQ::Client.new('token'=>'MYTOKEN', 'project_id'=>'MYPROJECTID') You can get your `token` and `project_id` at http://www.iron.io . The Basics ========= **Push** a message on the queue: - res = @client.messages.post("hello world!") - p res + msg = @ironmq.messages.post("hello world!") + p msg **Pop** a message off the queue: - res = @client.messages.get() + msg = @ironmq.messages.get() p res When you pop/get a message from the queue, it will NOT be deleted. It will eventually go back onto the queue after a timeout if you don't delete it (default timeout is 10 minutes). **Delete** a message from the queue: - res = @client.messages.delete(res["id"]) + res = msg.delete # or @ironmq.messages.delete(msg["id"]) p res Delete a message from the queue when you're done with it. Queue Selection