Sha256: 56d03626277acaba20a006f7fe99749c039b4ec0418ebe638fa5929f9dc272bc
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
IronMQ Ruby Client ------------- Getting Started ============== Create an IronMQ client object: @client = 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 **Pop** a message off the queue: res = @client.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"]) p res Delete a message from the queue when you're done with it.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ironmq-1.2.1 | README.markdown |