Class: SkypeMac::Iam
- Inherits:
-
Object
- Object
- SkypeMac::Iam
- Defined in:
- lib/rb-skypemac/iam.rb
Overview
Singleton for managing Skype user status
Constant Summary collapse
- @@STATUSES =
[:ONLINE, :OFFLINE, :SKYPEME, :AWAY, :NA, :DND, :INVISIBLE]
Class Method Summary collapse
-
.method_missing(id) ⇒ Object
Handles all of the user status permutations accepted by Skype otherwise Errors.
- .set_user_status(status) ⇒ Object
Class Method Details
.method_missing(id) ⇒ Object
Handles all of the user status permutations accepted by Skype otherwise Errors. For example, Iam.away is legal.
18 19 20 |
# File 'lib/rb-skypemac/iam.rb', line 18 def Iam.method_missing(id) Iam.set_user_status(id.id2name) end |