class BabySMS::WebHook
Attributes
adapter[R]
Public Class Methods
new(adapter)
click to toggle source
# File lib/babysms/web_hook.rb, line 5 def initialize(adapter) @adapter = adapter end
Public Instance Methods
end_point()
click to toggle source
This is the public URL of the webhook
# File lib/babysms/web_hook.rb, line 15 def end_point # Remove optional trailing '/' in configuration root = BabySMS.web_hook_root.gsub(/\/\z/, '') root + mount_point end
mount_point()
click to toggle source
This is where the webhook handler is mounted relative to the Rack application
# File lib/babysms/web_hook.rb, line 10 def mount_point "/#{adapter.adapter_id}" end