The Ruby SDK can be used both on the client and server to evaluate flags and report usage to the Tggl API or a proxy.
🔗 Website • 📚 Documentation • 📦 RubyGem • 🎥 Videos
## Usage Install the dependency: ```bash gem install tggl ``` Start evaluating flags: ```rb 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 ```