lib/postmon_ruby/client.rb in postmon_ruby-1.0.1 vs lib/postmon_ruby/client.rb in postmon_ruby-2.0.0
- old
+ new
@@ -1,7 +1,9 @@
module PostmonRuby
class Client
- def self.search(cep)
- PostmonRuby::Address.new( HTTParty.get("#{ENDPOINT}/cep/#{cep}") )
+ def self.search(finder, *arguments)
+ arguments.flatten!
+ PostmonRuby::Finders::Finder.new.search(finder, arguments)
+ # PostmonRuby::Finders::Finders.get_finder(finder).search(arguments)
end
end
end
\ No newline at end of file