lib/assertiva/localize.rb in assertiva-0.2.1 vs lib/assertiva/localize.rb in assertiva-0.2.2

- old
+ new

@@ -17,9 +17,17 @@ rescue => e raise end end + def self.query_by_cnpj(cnpj) + begin + Requests.post(self.paths[:by_cnpj] + "?cnpj=#{cnpj}") + rescue => e + raise + end + end + def self.query_by_name_or_address(query_params) begin Requests.post(self.paths[:by_name_or_address], query_params) rescue => e raise \ No newline at end of file