Sha256: 5d81877e762b432a97e35a92e50c38bb4c39c426cb7561e434367b0f527c1a9c
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
class BMC::SMS::Message attr_reader :data def initialize(data) @data = data end def strategy=(value) @strategy = BMC::SMS.parse_strategy(value) end def strategy(value = :no_argument) self.strategy = value unless value == :no_argument @strategy || BMC::SMS.strategy end def deliver_now strategy.call(data) end # TODO : Delay def deliver_later deliver_now end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bmc-1.0.1 | app/sms/bmc/sms/message.rb |
bmc-1.0.0 | app/sms/bmc/sms/message.rb |