https://github.com/devcyclehq/ruby-server-sdk
DevCycle - Ruby Server SDK
https://github.com/devcyclehq/ruby-server-sdk
continuous-delivery continuous-deployment devcycle devops feature-flags feature-toggles openfeature
Last synced: about 2 months ago
JSON representation
DevCycle - Ruby Server SDK
- Host: GitHub
- URL: https://github.com/devcyclehq/ruby-server-sdk
- Owner: DevCycleHQ
- License: mit
- Created: 2021-11-18T18:54:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T15:14:27.000Z (2 months ago)
- Last Synced: 2025-03-14T15:45:18.832Z (2 months ago)
- Topics: continuous-delivery, continuous-deployment, devcycle, devops, feature-flags, feature-toggles, openfeature
- Language: Ruby
- Homepage: https://docs.devcycle.com/
- Size: 1.3 MB
- Stars: 16
- Watchers: 7
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevCycle Ruby Server SDK
Welcome to the the DevCycle Ruby SDK, initially generated via the [DevCycle Bucketing API](https://docs.devcycle.com/bucketing-api/#tag/devcycle).
## Installation
Install the gem
`gem install devcycle-ruby-server-sdk`
## Getting Started
Please follow the [installation](#installation) procedure and then run the following code:
```ruby
# Load the gem
require 'devcycle-ruby-server-sdk'# Setup authorization
devcycle_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 data
result = devcycle_client.all_features(user)
p result
rescue DevCycle::ApiError => e
puts "Exception when calling DevCycle::Client->all_features: #{e}"
end```
## Usage
To find usage documentation, visit our [docs](https://docs.devcycle.com/docs/sdk/server-side-sdks/ruby#usage).