class WhoisXMLAPI::Contact
Public Class Methods
selectively_create_from_hash(h)
click to toggle source
# File lib/whoisxmlapi/contact.rb, line 27 def self.selectively_create_from_hash(h) attr = { :name => h['name'], :organization => h['organization'], :street1 => h['street1'], :street2 => h['street2'], :city => h['city'], :state => h['state'], :postalCode => h['postalCode'], :country => h['country'], :countryCode => h['countryCode'], :email => h['email'], :telephone => h['telephone'], :fax => h['fax'], } Contact.create(attr) end