Method: Dnsruby::RR::NAPTR#from_hash

Defined in:
lib/Dnsruby/resource/NAPTR.rb

#from_hash(hash) ⇒ Object

:nodoc: all



37
38
39
40
41
42
43
44
# File 'lib/Dnsruby/resource/NAPTR.rb', line 37

def from_hash(hash) #:nodoc: all

  @order = hash[:order]
  @preference = hash[:preference]
  @flags  = hash[:flags]
  @service = hash[:service]
  @regexp = hash[:regexp]
  @replacement = Name.create(hash[:replacement])
end