padron 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/padron/call.rb +2 -2
- data/lib/padron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7eb9ea674b2a3202525144100beca12ae362f2744ccb437d0a5081fe72f3778
|
4
|
+
data.tar.gz: ea51d2fb0fe901dc1e9dd8cffe04230518731e404722cf816938a02a1b5f28a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf0f52b87c3f4883108e3820f248cb8d5e262ead4c793a754293dd780eaf97f23ffe4b4103758d90129fae7c386bfac8d850d52ca9050ab25fac89ce1e9dff0
|
7
|
+
data.tar.gz: 6deff5034be1d4b481a67a3978523d7594a6c9a139035ae2a48aa872b8c02f550088bf427be41abadc2c1394fb0640c741fc22530f89def1660e3bd7e6e39c05
|
data/lib/padron/call.rb
CHANGED
@@ -67,7 +67,7 @@ module Padron
|
|
67
67
|
personas.map do |persona|
|
68
68
|
unless persona[:error_constancia] && persona[:error_constancia].try(:[],:apellido).nil?
|
69
69
|
if !persona[:error_constancia].nil?
|
70
|
-
{:name => persona[:error_constancia]
|
70
|
+
{:name => set_name(persona[:error_constancia]),
|
71
71
|
:cuit => persona[:error_constancia][:id_persona]}
|
72
72
|
else
|
73
73
|
{:name => set_name(persona[:datos_generales]),
|
@@ -83,7 +83,7 @@ module Padron
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def set_name(persona)
|
86
|
-
return "#{persona[:nombre
|
86
|
+
return "#{persona.try(:[], :nombre} #{persona.try(:[], :apellido)}"
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
data/lib/padron/version.rb
CHANGED