Sha256: 2b2a5e440e3b6035169aefecf51c99a9a5062ca97a959145ce4eaf1cfea43ce1
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module WaCloudApi module Message class Base attr_accessor :messaging_product, :recipient_type, :to, :type def initialize(to:, type:) @messaging_product = 'whatsapp' @recipient_type = 'individual' @to = to @type = type end def deliver Service.deliver(params: request_params) end private def request_params raise NotImplementedError, 'Should be implemented by child class' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wa_cloud_api-0.1.1 | lib/wa_cloud_api/message/base.rb |