Class: Detectify::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_columnObject

Returns the value of attribute domain_column.



3
4
5
# File 'lib/detectify/config.rb', line 3

def domain_column
  @domain_column
end

#entity_classObject

Returns the value of attribute entity_class.



3
4
5
# File 'lib/detectify/config.rb', line 3

def entity_class
  @entity_class
end

#ignore_urlsObject

Returns the value of attribute ignore_urls.



3
4
5
# File 'lib/detectify/config.rb', line 3

def ignore_urls
  @ignore_urls
end

#subdomain_columnObject

Returns the value of attribute subdomain_column.



3
4
5
# File 'lib/detectify/config.rb', line 3

def subdomain_column
  @subdomain_column
end

#tld_lengthObject

Returns the value of attribute tld_length.



3
4
5
# File 'lib/detectify/config.rb', line 3

def tld_length
  @tld_length
end