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.
-
#url ⇒ Object
(also: #effective_tld_names_url)
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
29 30 31 32 33 |
# File 'lib/public_suffix_list.rb', line 29 def initialize @cache_dir = nil @cache_expiry_period = 30 * 24 * 60 * 60 @url = "https://publicsuffix.org/list/effective_tld_names.dat" end |
Instance Attribute Details
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
21 22 23 |
# File 'lib/public_suffix_list.rb', line 21 def cache_dir @cache_dir end |
#cache_expiry_period ⇒ Object
Returns the value of attribute cache_expiry_period.
22 23 24 |
# File 'lib/public_suffix_list.rb', line 22 def cache_expiry_period @cache_expiry_period end |
#url ⇒ Object Also known as: effective_tld_names_url
Returns the value of attribute url.
23 24 25 |
# File 'lib/public_suffix_list.rb', line 23 def url @url end |