Sha256: 53bb8025174ad9ae0cee13e20932e44f1edfe7dde0809c8b687b0230dd5acff6

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

class Fanforce::Workers::Iron

  def initialize(opts={})
    @iron_mq = IronMQ::Client.new(:token => opts[:token] || ENV['IRON_TOKEN'], :project_id => opts[:project_id] || ENV['IRON_PROJECT_ID'])
  end

  def queue(queue_id, payload)
    @iron_mq.queue(queue_id).post(payload.to_json)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fanforce-workers-0.3.5 lib/fanforce/workers/iron.rb
fanforce-workers-0.3.4 lib/fanforce/workers/iron.rb
fanforce-workers-0.3.3 lib/fanforce/workers/iron.rb
fanforce-workers-0.3.2 lib/fanforce/workers/iron.rb
fanforce-workers-0.3.1 lib/fanforce/workers/iron.rb