module SmsService

Constants

VERSION

Public Class Methods

config() click to toggle source

Read configuraion data

# File lib/sms_service.rb, line 18
def self.config
      Configuration.instance.data
end
configure(options = nil) { |service| ... } click to toggle source

merge options into @data and if block given mege those options as well

# File lib/sms_service.rb, line 9
def self.configure(options = nil)
 service=Configuration.instance
 service.configure(options) unless options.nil?
 yield service unless !block_given?
 service.data
end
send(*sms) click to toggle source

Send SMS

# File lib/sms_service.rb, line 24
def self.send(*sms)
      service=SmsService::Service.get Configuration.service
      service.send(sms)
end