Class: Detectify::QueryBuilder::Base

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

Direct Known Subclasses

SQL

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain, subdomain) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/detectify/query_builder/base.rb', line 6

def initialize(domain, subdomain)
  @domain    = domain.downcase if domain.is_a?(String)
  @subdomain = subdomain.downcase if subdomain.is_a?(String)
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



4
5
6
# File 'lib/detectify/query_builder/base.rb', line 4

def domain
  @domain
end

#subdomainObject (readonly)

Returns the value of attribute subdomain.



4
5
6
# File 'lib/detectify/query_builder/base.rb', line 4

def subdomain
  @subdomain
end

Instance Method Details

#buildObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/detectify/query_builder/base.rb', line 11

def build
  raise(NotImplementedError)
end