lib/ods_wrapper/data/siret.rb in ods_wrapper-1.0.3 vs lib/ods_wrapper/data/siret.rb in ods_wrapper-1.0.4

- old
+ new

@@ -68,10 +68,10 @@ response = [] hash['records'].each do |record| fields = record['fields'] - name = fields.dig('denominationunitelegale')? fields.dig('denominationunitelegale') : fields.dig('nomunitelegale') + ' ' + fields.dig('prenom1unitelegale') + name = fields.dig('denominationunitelegale')? fields.dig('denominationunitelegale') : "#{fields.dig('nomunitelegale')} #{fields.dig('prenom1unitelegale')}".strip address = fields.dig('adresseetablissement') zipcode = fields.dig('codepostaletablissement') city = fields.dig('libellecommuneetablissement') siret = fields.dig('siret') ape = fields.dig('activiteprincipaleunitelegale').gsub('.', '')