Class: PublicSuffixList::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



24
25
26
27
28
# File 'lib/public_suffix_list.rb', line 24

def initialize
  @cache_dir = nil
  @cache_expiry_period = 30 * 24 * 60 * 60
  @effective_tld_names_url = "http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/src/effective_tld_names.dat?raw=1"
end

Instance Attribute Details

#cache_dirObject

Returns the value of attribute cache_dir.



20
21
22
# File 'lib/public_suffix_list.rb', line 20

def cache_dir
  @cache_dir
end

#cache_expiry_periodObject

Returns the value of attribute cache_expiry_period.



21
22
23
# File 'lib/public_suffix_list.rb', line 21

def cache_expiry_period
  @cache_expiry_period
end

#effective_tld_names_urlObject

Returns the value of attribute effective_tld_names_url.



22
23
24
# File 'lib/public_suffix_list.rb', line 22

def effective_tld_names_url
  @effective_tld_names_url
end