Sha256: 80303e02cea61ce018e8b081e632712ed9675003354e487979541927690f5e45
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
module Tincan class SMS class << self attr_accessor :sender def send(number, message) raise NoSmsSenderError.new unless @sender @sender.call number.e164, message.sub('CODE', number.code) end end class NoSmsSenderError < ArgumentError; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tincan-0.1.6 | lib/tincan/sms.rb |
tincan-0.1.5 | lib/tincan/sms.rb |