Sha256: ce2d4ba3e913bf801224c105fc68d86b6db1fd1264fd088f158da886fd55c35d
Contents?: true
Size: 430 Bytes
Versions: 27
Compression:
Stored size: 430 Bytes
Contents
class Agilibox::SMS::Message attr_reader :data def initialize(data) @data = data end def strategy=(value) @strategy = Agilibox::SMS.parse_strategy(value) end def strategy(value = :no_argument) self.strategy = value unless value == :no_argument @strategy || Agilibox::SMS.strategy end def deliver_now strategy.call(data) end # TODO : Delay def deliver_later deliver_now end end
Version data entries
27 entries across 27 versions & 1 rubygems