Dodgeball Ruby Server SDK
What is Dodgeball?
DodgeBall is a no-code platform for Trust & Safety teams to orchestrate their security products and the human elements of their end-to-end anti-fraud operations.
This repository contains the assets for dodgeball-trust-sdk-ruby
, a Ruby client for Dodgeball
Installation
Add gem from rubygems.org to Gemfile:
gem 'dodgeball-trust-sdk-ruby'
Into environment gems from rubygems.org:
gem install 'dodgeball-trust-sdk-ruby'
Usage
Create an instance of the Client object:
client = Dodgeball::Client.new({
stub: true,
write_key: 'write_key',
dodgeball_api_url: 'https://localhost:3001',
ssl: true,
on_error: Proc.new { |status, msg| print msg }
})
Execute a no-code workflow to verify the event
require 'dodgeball-trust-sdk-ruby'
riskyEvent = { type: 'PLACE_ORDER', data: { order: 'abc123' } }.freeze
options = { sync: true }
client.verify(riskyEvent, '<source id from the tracking client>', '<optional verfication id>', options)
Documentation
For more information about how to use this SDK, please refer to our documentation
Testing
You can use the stub
option to Dodgeball::Client.new
to cause all requests to be stubbed, making it easier to test with this library.
Contact Us
If you come across any issues while configuring or using Dodgeball, please feel free to contact us. We will be happy to help!
Get Setup for Development and get a REPL
sudo gem update bundler
bundle install
rake console