Sha256: eba13c99bd9b646a51e9f6c3a7c2516955e4da78e880f630bca8df9f8dd67968

Contents?: true

Size: 879 Bytes

Versions: 7

Compression:

Stored size: 879 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 NoMethodError.new("You must define validate_config in your Smess output class")
    end

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

    # entry point to the verification process.
    def verify(using: 'none')
      raise NoMethodError.new("Verify API is not supported by this Smess output")
    end
    def check(code)
      raise NoMethodError.new("Verify API is not supported by this Smess output")
    end
    
    def send_feedback(_message_sid)
      nil
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smess-3.3.1 lib/smess/output.rb
smess-3.3.0 lib/smess/output.rb
smess-3.2.0 lib/smess/output.rb
smess-3.1.2 lib/smess/output.rb
smess-3.1.1 lib/smess/output.rb
smess-3.1.0 lib/smess/output.rb
smess-3.0.0 lib/smess/output.rb