1. Install the SDK
gem install tggl
2. Create the client
require "tggl"
$client = Tggl::Client.new("YOUR_API_KEY")
3. Start using feature flags
flags = $client.eval_context({
userId: "abc",
email: "foo@gmail.com",
country: "FR",
# ...
})
if flags.get("my-feature", true)
# ...
end
You can work with the API or choose to do local flag evaluation to evaluate millions of flags per second.