lib/messenger.rb in messenger-0.0.3 vs lib/messenger.rb in messenger-0.1.0

- old
+ new

@@ -18,14 +18,24 @@ def self.root APP_ROOT end + def self.valid_url?(url) + service_handler = handler(url) + service_handler.valid_url?(url) + end + def self.send(url, message, options={}) service_handler = handler(url) SystemTimer.timeout_after(options[:timeout] || 15) do service_handler.send(url, message, options) end + end + + def self.obfuscate(url) + service_handler = handler(url) + service_handler.obfuscate(url) end def self.protocol(url) # TODO: More services