Class: RudeQ::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/rude_q/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Client

Returns a new instance of Client.



6
# File 'lib/rude_q/client.rb', line 6

def initialize(*args); super(); end

Instance Method Details

#get(key) ⇒ Object



8
# File 'lib/rude_q/client.rb', line 8

def get(key); RudeQueue.get(key); end

#set(key, value) ⇒ Object



7
# File 'lib/rude_q/client.rb', line 7

def set(key, value); RudeQueue.set(key, value); end

#statsObject



9
# File 'lib/rude_q/client.rb', line 9

def stats; ActiveRecord::Base.connection; end