module MagicBell
Constants
- EXTRAS_CSS_URL
- VERSION
- WIDGET_JAVASCRIPT_URL
Public Class Methods
authentication_headers(client_api_key: nil, client_api_secret: nil)
click to toggle source
# File lib/magicbell.rb, line 49 def authentication_headers(client_api_key: nil, client_api_secret: nil) { "X-MAGICBELL-API-KEY" => client_api_key || api_key, "X-MAGICBELL-API-SECRET" => client_api_secret || api_secret } end
config()
click to toggle source
# File lib/magicbell.rb, line 41 def config @config ||= Config.new end
configure() { |config| ... }
click to toggle source
# File lib/magicbell.rb, line 37 def configure yield(config) end
hmac(message)
click to toggle source
Calculate HMAC for user's email
# File lib/magicbell.rb, line 57 def hmac(message) MagicBell::Client.new(api_key: api_key, api_secret: api_secret).hmac(message) end
reset_config()
click to toggle source
# File lib/magicbell.rb, line 45 def reset_config @config = Config.new end