Sha256: ef5e1172f8035b72a4dc3fd47ea3d44bdc1f1b1c8e6b54bc7f95fbdd225b808f

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

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.toggle?("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

Learn more
-----------

Check out our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](http://docs.launchdarkly.com/v1.0/docs/ruby-sdk-reference).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ldclient-rb-0.2.0 README.md