No release in over a year
This library provides functionality for Ruby-based server applications to execute no-code workflows from the Dodgeball platform
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.1.4
~> 4.4
~> 3.6.2
~> 0.9.12.2
~> 12.3.3
~> 3.0
~> 0.78.0
= 1.2.1
 Project Readme

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