padron 0.1.5 → 0.1.6
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: 39032c8e50bf14881b44a7392299024986251bad01234ea068c594cdc2f21633
|
4
|
+
data.tar.gz: 0704c2886a4769dba6833f70a5728049a2bd39bba9f354a63a0744f6bde94b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 209e219faf9f91c5a4b2d2ecf8cdd3f7effdc0c3266d107e84e67d4a73fd5c8a8ba7c14cba2379c640132d8ca9fc7453da7d35f70774f466f06da141b1e85ff3
|
7
|
+
data.tar.gz: '05536124996b51b5d90ad1a232d9bc2ca6467834556fd5324050cc1e25e20d76d4b6e696ab4d66c68c2c259d0df9ccca538bcfe433998456d08bb286eb02e0fc'
|
data/Gemfile.lock
CHANGED
data/lib/padron/call.rb
CHANGED
@@ -65,18 +65,18 @@ module Padron
|
|
65
65
|
def set_data
|
66
66
|
personas = data.body[:get_persona_list_response][:persona_list_return][:persona]
|
67
67
|
personas.map do |persona|
|
68
|
-
unless persona[:error_constancia
|
69
|
-
if !persona[
|
68
|
+
unless persona[0] == :error_constancia && persona.try(:[],:apellido).nil?
|
69
|
+
if !persona[1].nil? && persona[0] == :error_constancia
|
70
70
|
{:name => set_name(persona[:error_constancia]),
|
71
71
|
:cuit => persona[:error_constancia][:id_persona]}
|
72
72
|
else
|
73
|
-
{:name => set_name(persona
|
74
|
-
:cuit => persona[:
|
75
|
-
:cp => persona
|
76
|
-
:address => persona
|
77
|
-
:city_id => persona
|
78
|
-
:city => Padron::PROVINCIAS[persona
|
79
|
-
:locality => persona
|
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)}
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
data/lib/padron/version.rb
CHANGED