Sha256: e25cb250083fada21de9a11b11f739c672a5220891b0c5b81dfa96b82059d50c

Contents?: true

Size: 1000 Bytes

Versions: 3

Compression:

Stored size: 1000 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.

Queue Selection
===============

One of the following:

1. Pass `:queue_name=>'my_queue'` into IronMQ::Client.new
1. `@client.queue_name = 'my_queue'`
1. Pass `:queue_name=>'my_queue'` into any post(), get(), or delete()

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ironmq-1.2.4 README.markdown
ironmq-1.2.3 README.markdown
ironmq-1.2.2 README.markdown