Class: Domainatrix::Url
- Inherits:
-
Object
- Object
- Domainatrix::Url
- Defined in:
- lib/squiggle/domain_parser.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
4 5 6 |
# File 'lib/squiggle/domain_parser.rb', line 4 def query @query end |
Instance Method Details
#toplevel ⇒ Object
6 7 8 |
# File 'lib/squiggle/domain_parser.rb', line 6 def toplevel [ domain, public_suffix ].compact.join(".") end |