Class: BetfairApiNgRails::Api::Config
- Inherits:
-
Object
- Object
- BetfairApiNgRails::Api::Config
- Defined in:
- lib/betfair_api_ng_rails/api/config.rb
Class Attribute Summary collapse
-
.application_key ⇒ Object
Returns the value of attribute application_key.
-
.cache_expire ⇒ Object
Returns the value of attribute cache_expire.
-
.endpoint ⇒ Object
Returns the value of attribute endpoint.
-
.formatter ⇒ Object
Returns the value of attribute formatter.
-
.go_filename ⇒ Object
Returns the value of attribute go_filename.
-
.go_localuser ⇒ Object
Returns the value of attribute go_localuser.
-
.keep_alive_session ⇒ Object
Returns the value of attribute keep_alive_session.
-
.locale ⇒ Object
Returns the value of attribute locale.
-
.password ⇒ Object
Returns the value of attribute password.
-
.proxy_enable ⇒ Object
Returns the value of attribute proxy_enable.
-
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
-
.ssl_crt_filepath ⇒ Object
Returns the value of attribute ssl_crt_filepath.
-
.ssl_key_filepath ⇒ Object
Returns the value of attribute ssl_key_filepath.
-
.use_cache ⇒ Object
Returns the value of attribute use_cache.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Class Attribute Details
.application_key ⇒ Object
Returns the value of attribute application_key.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def application_key @application_key end |
.cache_expire ⇒ Object
Returns the value of attribute cache_expire.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def cache_expire @cache_expire end |
.endpoint ⇒ Object
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def endpoint @endpoint end |
.formatter ⇒ Object
Returns the value of attribute formatter.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def formatter @formatter end |
.go_filename ⇒ Object
Returns the value of attribute go_filename.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def go_filename @go_filename end |
.go_localuser ⇒ Object
Returns the value of attribute go_localuser.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def go_localuser @go_localuser end |
.keep_alive_session ⇒ Object
Returns the value of attribute keep_alive_session.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def keep_alive_session @keep_alive_session end |
.locale ⇒ Object
Returns the value of attribute locale.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def locale @locale end |
.password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def password @password end |
.proxy_enable ⇒ Object
Returns the value of attribute proxy_enable.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def proxy_enable @proxy_enable end |
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def proxy_url @proxy_url end |
.ssl_crt_filepath ⇒ Object
Returns the value of attribute ssl_crt_filepath.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def ssl_crt_filepath @ssl_crt_filepath end |
.ssl_key_filepath ⇒ Object
Returns the value of attribute ssl_key_filepath.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def ssl_key_filepath @ssl_key_filepath end |
.use_cache ⇒ Object
Returns the value of attribute use_cache.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def use_cache @use_cache end |
.username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 5 def username @username end |
Class Method Details
.load_for_environment(file_path, env) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/betfair_api_ng_rails/api/config.rb', line 29 def load_for_environment(file_path, env) require 'yaml' load_config = YAML.load_file(file_path)[env] Api::Constants::LOADABLE_CONFIG_OPTIONS.each do |opt| send("#{opt}=", load_config[opt.to_s]) end end |