Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# myapp.rb
require 'sinatra'
require './optly'
get '/' do
enabled = Optly.instance.client.is_feature_enabled('hello_world', 'user123', {
'customerId' => 123,
'isVIP' => true
})
enabled ? 'Hello World! You got the hello_world feature!' : 'You did not get the hello_world feature'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment