Sha256: 88a07d3e99314350000bc291320599c3465a57c80f8f722ac5e6a6e0741774cc

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

require 'twilio-ruby'

module Smess
  class TwilioWhatsapp < Twilio

    private

    def to
      "whatsapp:+#{sms.to}"
    end

    def sender
      if from.present?
        {from: "whatsapp:+#{from}"}
      else
        super
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smess-3.3.0 lib/smess/outputs/twilio_whatsapp.rb