Class: Detectify::QueryBuilder::Base
- Inherits:
-
Object
- Object
- Detectify::QueryBuilder::Base
- Defined in:
- lib/detectify/query_builder/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(domain, subdomain) ⇒ Base
constructor
A new instance of Base.
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
4 5 6 |
# File 'lib/detectify/query_builder/base.rb', line 4 def domain @domain end |
#subdomain ⇒ Object (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
#build ⇒ Object
11 12 13 |
# File 'lib/detectify/query_builder/base.rb', line 11 def build raise(NotImplementedError) end |