Module: MalcolmX
- Defined in:
- lib/malcolmx.rb
Class Method Summary collapse
Class Method Details
.find(domain_names = [], &block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/malcolmx.rb', line 6 def self.find(domain_names = [], &block) domain_names.collect do |domain| response = lookup(domain) response.delete("name") parsed_response = response.collect do |tld, status| { :domain => "#{domain}.#{tld}", :available => status == "a" } end yield(parsed_response) end end |