Class: XdomainRails::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/xdomain_rails/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#cacheObject

Returns the value of attribute cache.



6
7
8
# File 'lib/xdomain_rails/config.rb', line 6

def cache
  @cache
end

#master_domainsObject

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_pathObject

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_domainsObject

Returns the value of attribute slave_domains.



5
6
7
# File 'lib/xdomain_rails/config.rb', line 5

def slave_domains
  @slave_domains
end