Module: Pictor

Defined in:
lib/pictor.rb,
lib/pictor/client.rb

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.run!(*args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/pictor.rb', line 4

def self.run!(*args)
  EM.run do
    p = Pictor::Client.new
    p.jid = args[0]
    p.pass = args[1]
    p.room = args[2]
    p.nick = args[3]
    p.key = args[4]
    p.run
  end
end