Sha256: 99634547f0170da5ae8bda8edfcd9fe42db2fc3be59e03afc88fd6872d161e11

Contents?: true

Size: 554 Bytes

Versions: 9

Compression:

Stored size: 554 Bytes

Contents

module Smess
  class Output

    attr_accessor :sms
    attr_reader :config

    def initialize(config)
      @config = config
      validate_config
    end

    # should be used to make a reasonable validation that the configuration provided is good.
    def validate_config
      raise NotImplementedError.new("You must define validate_config in your Smess output class")
    end

    # entry point to the sms delivery process.
    def deliver
      raise NotImplementedError.new("You must define deliver in your Smess output class")
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
smess-2.0.8 lib/smess/output.rb
smess-2.0.7 lib/smess/output.rb
smess-2.0.6 lib/smess/output.rb
smess-2.0.5 lib/smess/output.rb
smess-2.0.4 lib/smess/output.rb
smess-2.0.3 lib/smess/output.rb
smess-2.0.2 lib/smess/output.rb
smess-2.0.1 lib/smess/output.rb
smess-2.0 lib/smess/output.rb