Created
July 22, 2020 19:14
-
-
Save asaschachar/bfc8d84cca9949d07be98ffbf3cab03e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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