Commit 88303dd7 authored by sergio1990's avatar sergio1990

Added GoLayer settings to config and generator

parent 3e021f39
......@@ -16,7 +16,11 @@ module BetfairApiNgRails
:keep_alive_session,
:keep_alive_url,
:use_cache,
:cache_expire
:cache_expire,
:go_url,
:go_enable
:go_localuser,
:go_filename
def formatter=(value)
@formatter = BetfairApiNgRails::Api::FormatterFactory.initialize_formatter value
......
......@@ -13,4 +13,9 @@ BetfairApiNgRails.config do |config|
config.use_cache = false
config.cache_expire = 5 # in seconds
# Go layer settings
config.go_enable = false
# Uncomment next line if you will use go layer and go_enable is set to true
#config.go_url = "http://127.0.0.1/"
end
\ No newline at end of file
......@@ -5,6 +5,8 @@ development:
keep_alive_url: https://identitysso.betfair.com/api/keepAlive
username: YOUR_ACCOUNT_USERNAME
password: YOUR_ACCOUNT_PASSWORD
go_localuser: YOURUSERNAME
go_filename: betfair
production:
application_key: YOUR_APP_KEY
......@@ -12,4 +14,6 @@ production:
api_url: https://api-ng.betstores.com/betting/betfair/services/api.betfair.com/exchange/betting/json-rpc/v1
keep_alive_url: https://identitysso.betfair.com/api/keepAlive
username: YOUR_ACCOUNT_USERNAME
password: YOUR_ACCOUNT_PASSWORD
\ No newline at end of file
password: YOUR_ACCOUNT_PASSWORD
go_localuser: YOURUSERNAME
go_filename: betfair
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment