Class: PublicSuffixList::Config
- Inherits:
-
Object
- Object
- PublicSuffixList::Config
- Defined in:
- lib/public_suffix_list.rb
Instance Attribute Summary collapse
-
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
-
#cache_expiry_period ⇒ Object
Returns the value of attribute cache_expiry_period.
-
#effective_tld_names_url ⇒ Object
Returns the value of attribute effective_tld_names_url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_dir ⇒ Object
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_period ⇒ Object
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_url ⇒ Object
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 |