ruby-experian 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 041bb49fb2e7d162140687eb325980b61d82e6a9912bdb8133f4597476575e91
4
- data.tar.gz: 7acd5b94f54997d5b01930c6ca063b8bd8869c3870311500e675ecb3cd832926
3
+ metadata.gz: '00883bdb912d6cb092d8166da29b6391ddac2c34dd02fd19d1022dd3834bfe89'
4
+ data.tar.gz: 44199478048a4226285f265aef767e7888e736df8d00366e4a7a2117e9b7a74f
5
5
  SHA512:
6
- metadata.gz: dc7aa87e5cdb45bd69c3f190c4b4d407105b8a418ea9509a068e88c09406e50e02eef7ba06ebf6d07dd0361518a98c3aa09b316b627a9c9ea4ed089ff5178680
7
- data.tar.gz: 4e3d8b6f4872434bcd30b1205d832751a20b30211f2a5b53c5dd0a463bbd3361bcfdb68cfdf0d3cea515042bae30f074f6d3844c3d3dd59b2f3aae5a5987bd54
6
+ metadata.gz: 8ac7ddea991154bc3957bbf53e1d2c01dc23eccce1a539798b9186e80e971ca16810f99fe7fd0dd82e58c199366e4d9abd3bb5d05f2536c0d7ad51bb18b8039c
7
+ data.tar.gz: d827b25616e56df8069171dfda6f69cc7bb4d8c1cbf851921be6c252276897bc7ee254a1a3261335ce51dd7908e1f1d5dacba543e20e5249d1fa4058c96af4cb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-experian (0.0.6)
4
+ ruby-experian (0.0.7)
5
5
  faraday (>= 1)
6
6
  multi_xml (>= 0.6.0)
7
7
  rexml (>= 3.2)
data/README.md CHANGED
@@ -132,6 +132,7 @@ The exposed sections for now are:
132
132
  - address
133
133
  - rating
134
134
  - number_of_employees
135
+ - cnae
135
136
 
136
137
  ```ruby
137
138
  report = client.report(cif: "cif goes here")
@@ -21,7 +21,7 @@ module Experian
21
21
  cif: id_xml["Cif"],
22
22
  name: id_xml["Nombre"],
23
23
  infotel_code: id_xml["CodigoInfotel"],
24
- incorporation_date: id_xml["FechaFundacion"],
24
+ incorporation_date: Date.parse(id_xml["FechaFundacion"]),
25
25
  social_form: id_xml["FormaSocial"]["__content__"],
26
26
  )
27
27
  end
@@ -57,6 +57,10 @@ module Experian
57
57
  end
58
58
  end
59
59
 
60
+ def cnae
61
+ data.dig("ActividadComercial", "Cnae")&.first&.dig("Codigo")&.to_i
62
+ end
63
+
60
64
  private
61
65
 
62
66
  def data
@@ -1,3 +1,3 @@
1
1
  module Experian
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-experian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Mochetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-07 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday