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.



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_dirObject

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_periodObject

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

#urlObject 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