Sha256: 8cfcc13f0b2fb2afcd6404e75194e7292eb0be3a06724ea460ba1c43df9c6d89
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Clicksign module API class WhatsappNotifier extend Requests REQUEST_PATH = '/api/v1/notify_by_whatsapp' ATTRIBUTES = [:request_signature_key] class << self def notify(params = {}) post( REQUEST_PATH, body(params) ) end def body(params) ATTRIBUTES.each.with_object({}) do |attribute, hash| hash[attribute] = params[attribute] if params.has_key?(attribute) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clicksign-api-1.0.1 | lib/clicksign/api/whatsapp_notifier.rb |