1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-23 01:16:27 +02:00

Fixed syntax error for Ruby SDK example

This commit is contained in:
kakakakakku 2022-01-13 10:39:03 +09:00 committed by Renato Arruda
parent 4a5b332567
commit 18c87cedf6

View File

@ -5,14 +5,14 @@ title: Ruby SDK
> You will need your `API URL` and your `API token` in order to connect the Client SDK to you Unleash instance. You can find this information in the “Admin” section Unleash management UI. [Read more](../user_guide/api-token)
```sh
require 'unleash'
```ruby
require 'unleash'
@unleash = Unleash::Client.new(
url: '<API url>',
app_name: 'simple-test',
custom_http_headers = {'Authorization': '<API token>'},
)
@unleash = Unleash::Client.new(
url: '<API url>',
app_name: 'simple-test',
custom_http_headers: {'Authorization': '<API token>'},
)
```
### Sample usage {#sample-usage}