lib/targetdata/api/pf.rb in targetdata-0.4.0 vs lib/targetdata/api/pf.rb in targetdata-0.4.1

- old
+ new

@@ -19,11 +19,11 @@ raise Targetdata::Errors::PersonNotFound unless person_found?(parsed) parse_person_hash parsed end def person_found? hash - !hash["result"].empty? + !!hash["result"] end def parse_person_hash hash pessoa = hash["result"].first["pessoa"] pessoa["cadastral"]["email"] = nil @@ -34,6 +34,6 @@ pessoa["cadastral"] end end end -end \ No newline at end of file +end