Initialization
Before you can use the FME Ruby SDK, you need to initialize it with your account settings.
Basic Usage
Here's how to initialize the FME Go SDK:
require 'vwo'
# options for initializing SDK
options = {
sdk_key: 'your_sdk_key',
account_id: 'your_account_id',
gateway_service_url: 'http://your.host.com:port', # check section - How to Setup Gateway Service - for more details
}
# Initialize VWO
vwo_instance = VWO.init(options)
Parameter | Type | Description |
---|---|---|
account_id Required | Integer | Your VWO application's Account ID. |
sdk_key Required | String | Unique environment key provided to you inside the Websites & Apps section in VWO application, under "Default Project". |
gateway_service_url Required | String | URL of your Gateway Service. |
Please note that all three parameters are mandatory for initializing the Ruby SDK. Make sure you have set up the Gateway Service before initializing the SDK. For more information on the Gateway Service, refer to our Gateway Service documentation.
After successful initialization, you can use the instance to access all SDK functionalities.
Updated 8 days ago