Sha256: f816d9df96296e65fe8f33de40620a9cdfb6f075014d7e01913ec6d5df5e5005
Contents?: true
Size: 366 Bytes
Versions: 18
Compression:
Stored size: 366 Bytes
Contents
module Cmor::Contact class WhatsappRequest include ActiveModel::Model attr_accessor :message validates :message, presence: true def whatsapp_link "https://wa.me/#{number_for_url}?text=#{URI.encode(message)}" end def number_for_url Cmor::Contact::Configuration.whatsapp_number&.gsub("+", "")&.gsub(" ", "") end end end
Version data entries
18 entries across 18 versions & 1 rubygems