padron 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/padron/call.rb +9 -9
- 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: 4c19142bfc4c087c344481f1c7c8c391c3e764c995b9a06ee5280aeb8ff1923d
|
4
|
+
data.tar.gz: 23e3e33ff2bfde8d2131d854808ab0bf29df79744add0f4ff8b497da382357e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 736dacb93101b5796c1977a3b6ddd3ea63dde27a4097fecfedade9ddb36f8ee5858fb0432779ba9d697fbf356025505a97d5ab635663a4fe81049f2e439a29a3
|
7
|
+
data.tar.gz: 3f0399164f1e38d5fa6031ce0a34da3b1e5808a5a2c742b06e663655570beaf07e584853dc26f19e2ae301935da4761c3f84f83441edd9263cb0060c2d83a3f2
|
data/Gemfile.lock
CHANGED
data/lib/padron/call.rb
CHANGED
@@ -67,16 +67,16 @@ module Padron
|
|
67
67
|
personas.map do |persona|
|
68
68
|
unless persona[0] == :error_constancia && persona.try(:[],:apellido).nil?
|
69
69
|
if !persona[1].nil? && persona[0] == :error_constancia
|
70
|
-
{:name => set_name(persona[
|
71
|
-
:cuit => persona[
|
70
|
+
{:name => set_name(persona[1]),
|
71
|
+
:cuit => persona[1][:id_persona]}
|
72
72
|
else
|
73
|
-
{:name => set_name(persona),
|
74
|
-
:cuit => persona[:id_persona],
|
75
|
-
:cp => persona.try(:[], :domicilio_fiscal).try(:[], :cod_postal),
|
76
|
-
:address => persona.try(:[], :domicilio_fiscal).try(:[], :direccion),
|
77
|
-
:city_id => persona.try(:[], :domicilio_fiscal).try(:[], :id_provincia),
|
78
|
-
:city => Padron::PROVINCIAS[persona.try(:[],:domicilio_fiscal).try(:[], :id_provincia)],
|
79
|
-
:locality => persona.try(:[], :domicilio_fiscal).try(:[], :localidad)}
|
73
|
+
{:name => set_name(persona[1]),
|
74
|
+
:cuit => persona[1][:id_persona],
|
75
|
+
:cp => persona[1].try(:[], :domicilio_fiscal).try(:[], :cod_postal),
|
76
|
+
:address => persona[1].try(:[], :domicilio_fiscal).try(:[], :direccion),
|
77
|
+
:city_id => persona[1].try(:[], :domicilio_fiscal).try(:[], :id_provincia),
|
78
|
+
:city => Padron::PROVINCIAS[persona[1].try(:[],:domicilio_fiscal).try(:[], :id_provincia)],
|
79
|
+
:locality => persona[1].try(:[], :domicilio_fiscal).try(:[], :localidad)}
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
data/lib/padron/version.rb
CHANGED