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