Project

tggl

0.0
The project is in a healthy, maintained state
The Ruby SDK can be used to evaluate flags and report usage to the Tggl API or a Proxy.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
~> 1.21
~> 3.23

Runtime

~> 0.5
 Project Readme

Tggl Logo

Tggl Ruby SDK

The Ruby SDK can be used to evaluate flags and report usage to the Tggl API or a proxy.

🔗 Website • 📚 Documentation • 📦 RubyGem • 🎥 Videos

Usage

Install the dependency:

gem install tggl

Start evaluating flags:

require "tggl"
 
$client = Tggl::Client.new("YOUR_API_KEY")
 
# An API call to Tggl is performed here
$flags = $client.eval_context({
  userId: "abc",
  email: "foo@gmail.com",
  country: "FR",
  # ...
})
 
if $flags.is_active? "my-feature"
  # ...
end
 
if $flags.get "my-feature" == "Variation A"
  # ...
end