Sha256: ff25f01f42ba892eb354e2d00bee20a4a02a848211f8c6b6527a35a40ba698c5
Contents?: true
Size: 758 Bytes
Versions: 5
Compression:
Stored size: 758 Bytes
Contents
LaunchDarkly SDK for Ruby =========================== Quick setup ----------- 0. Install the Ruby SDK with `gem` gem install ldclient-rb 1. Require the LaunchDarkly client: require 'ldclient-rb' 2. Create a new LDClient with your API key: client = LaunchDarkly::LDClient.new("your_api_key") Your first feature flag ----------------------- 1. Create a new feature flag on your [dashboard](https://app.launchdarkly.com) 2. In your application code, use the feature's key to check wthether the flag is on for each user: if client.get_flag?("your.flag.key", {:key => "user@test.com"}, false) # application code to show the feature else # the code to run if the feature is off end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ldclient-rb-0.1.1 | README.md |
ldclient-rb-0.1.0 | README.md |
ldclient-rb-0.0.10 | README.md |
ldclient-rb-0.0.9 | README.md |
ldclient-rb-0.0.8 | README.md |