Class: DoroParser::Mydns
- Inherits:
-
Object
- Object
- DoroParser::Mydns
- Defined in:
- lib/dorothy2/DEM.rb
Instance Method Summary collapse
- #dns_class ⇒ Object
-
#initialize(data) ⇒ Mydns
constructor
A new instance of Mydns.
- #query ⇒ Object
- #query? ⇒ Boolean
- #response ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(data) ⇒ Mydns
Returns a new instance of Mydns.
20 21 22 23 |
# File 'lib/dorothy2/DEM.rb', line 20 def initialize(data) raw = data.to_s.gsub(/(\000|\001|\002|\003|\004|\005|\006|\007|\008|\009|\010|\011|\012|\013|\014|\015|\016|\017|\018|\019|\020|\021\022|\023|\024|\025|\026|\027)/, '.') @query = raw.grep(/([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}/){$&} end |
Instance Method Details
#dns_class ⇒ Object
33 34 35 |
# File 'lib/dorothy2/DEM.rb', line 33 def dns_class #todo end |
#query ⇒ Object
25 26 27 |
# File 'lib/dorothy2/DEM.rb', line 25 def query return @query if @query end |
#query? ⇒ Boolean
29 30 31 |
# File 'lib/dorothy2/DEM.rb', line 29 def query? return true if @query end |
#response ⇒ Object
41 42 43 |
# File 'lib/dorothy2/DEM.rb', line 41 def response #todo end |
#type ⇒ Object
37 38 39 |
# File 'lib/dorothy2/DEM.rb', line 37 def type #todo end |