Welcome to the the DevCycle Ruby SDK, initially generated via the DevCycle Bucketing API.
Install the gem
gem install devcycle-ruby-server-sdk
Please follow the installation procedure and then run the following code:
# Load the gemrequire'devcycle-ruby-server-sdk'# Setup authorizationdevcycle_client=DevCycle::Client.new(ENV['DEVCYCLE_SERVER_SDK_KEY'],DevCycle::Options.new,true)user=DevCycle::User.new({user_id: 'user_id_example'})begin# Get all features for user dataresult=devcycle_client.all_features(user)presultrescueDevCycle::ApiError=>eputs"Exception when calling DevCycle::Client->all_features: #{e}"endTo find usage documentation, visit our docs.