Class: XdomainRails::Config
- Inherits:
-
Object
- Object
- XdomainRails::Config
- Defined in:
- lib/xdomain_rails/config.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#master_domains ⇒ Object
Returns the value of attribute master_domains.
-
#proxy_path ⇒ Object
Returns the value of attribute proxy_path.
-
#slave_domains ⇒ Object
Returns the value of attribute slave_domains.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 |
# File 'lib/xdomain_rails/config.rb', line 8 def initialize self.proxy_path = '/xdomain/proxy' self.master_domains = ENV["XDOMAIN_MASTERS"] self.slave_domains = ENV["XDOMAIN_SLAVES"] self.cache = nil end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
6 7 8 |
# File 'lib/xdomain_rails/config.rb', line 6 def cache @cache end |
#master_domains ⇒ Object
Returns the value of attribute master_domains.
5 6 7 |
# File 'lib/xdomain_rails/config.rb', line 5 def master_domains @master_domains end |
#proxy_path ⇒ Object
Returns the value of attribute proxy_path.
6 7 8 |
# File 'lib/xdomain_rails/config.rb', line 6 def proxy_path @proxy_path end |
#slave_domains ⇒ Object
Returns the value of attribute slave_domains.
5 6 7 |
# File 'lib/xdomain_rails/config.rb', line 5 def slave_domains @slave_domains end |