Module: Imstat

Defined in:
lib/imstat.rb,
lib/imstat/icq.rb,
lib/imstat/skype.rb,
lib/imstat/yahoo.rb

Defined Under Namespace

Classes: Icq, Skype, Yahoo

Class Method Summary collapse

Class Method Details

.get_user_status(options) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/imstat.rb', line 9

def self.get_user_status(options)
  
  case options[:messenger]
    when :skype
      skype_status = Imstat::Skype::get_status(options[:user])
    when :icq
      icq_status = Imstat::Icq::get_status(options[:user])
    when :yahoo
      yahoo_status = Imstat::Yahoo::get_status(options[:user])
  end
  
end