lib/sms_broker.rb in sms_broker-1.0.0 vs lib/sms_broker.rb in sms_broker-1.0.2
- old
+ new
@@ -1,25 +1,21 @@
require 'nexmo'
require 'compel'
require 'twilio-ruby'
-
require 'sms_broker/client/response/error'
require 'sms_broker/client/response/success'
-
require 'sms_broker/configuration'
require 'sms_broker/service'
module SmsBroker
-
extend Configuration
+ module_function
+
def service(name = default_service)
Service.get(name)
end
def message(body)
service.message(body)
end
-
- extend self
-
end