Class: Detectify::Config
- Inherits:
-
Object
- Object
- Detectify::Config
- Defined in:
- lib/detectify/config.rb
Instance Attribute Summary collapse
-
#domain_column ⇒ Object
Returns the value of attribute domain_column.
-
#entity_class ⇒ Object
Returns the value of attribute entity_class.
-
#ignore_urls ⇒ Object
Returns the value of attribute ignore_urls.
-
#subdomain_column ⇒ Object
Returns the value of attribute subdomain_column.
-
#tld_length ⇒ Object
Returns the value of attribute tld_length.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 12 |
# File 'lib/detectify/config.rb', line 6 def initialize @entity_class = 'Account' @tld_length = 1 @ignore_urls = [] @domain_column = 'domain' @subdomain_column = 'subdomain' end |
Instance Attribute Details
#domain_column ⇒ Object
Returns the value of attribute domain_column.
3 4 5 |
# File 'lib/detectify/config.rb', line 3 def domain_column @domain_column end |
#entity_class ⇒ Object
Returns the value of attribute entity_class.
3 4 5 |
# File 'lib/detectify/config.rb', line 3 def entity_class @entity_class end |
#ignore_urls ⇒ Object
Returns the value of attribute ignore_urls.
3 4 5 |
# File 'lib/detectify/config.rb', line 3 def ignore_urls @ignore_urls end |
#subdomain_column ⇒ Object
Returns the value of attribute subdomain_column.
3 4 5 |
# File 'lib/detectify/config.rb', line 3 def subdomain_column @subdomain_column end |
#tld_length ⇒ Object
Returns the value of attribute tld_length.
3 4 5 |
# File 'lib/detectify/config.rb', line 3 def tld_length @tld_length end |