Method: Dnsruby::RR::NAPTR#from_string
- Defined in:
- lib/Dnsruby/resource/NAPTR.rb
#from_string(input) ⇒ Object
:nodoc: all
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/Dnsruby/resource/NAPTR.rb', line 50 def from_string(input) #:nodoc: all if (input.length > 0) values = input.split(" ") @order = values [0].to_i @preference = values [1].to_i @flags = values [2] @service = values [3] @regexp = values [4] @replacement = Name.create(values[5]) end end |