# File lib/Dnsruby/resource/SRV.rb, line 60 def from_hash(hash) if hash[:priority] @priority = hash[:priority].to_int end if hash[:weight] @weight = hash[:weight].to_int end if hash[:port] @port = hash[:port].to_int end if hash[:target] @target= Name.create(hash[:target]) end end