app/models/apidae/apidae_data_parser.rb in apidae-1.1.2 vs app/models/apidae/apidae_data_parser.rb in apidae-1.2.0

- old
+ new

@@ -165,40 +165,40 @@ contact_entries = information_hash[:moyensCommunication] || [] contact_entries.each do |c| case c[:type][:id] when PHONE, ALT_PHONE contact_details[:telephone] ||= {} - contact_details[:telephone][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:telephone][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when EMAIL contact_details[:email] ||= {} - contact_details[:email][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:email][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when WEBSITE contact_details[:website] ||= {} - contact_details[:website][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:website][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when GOOGLE contact_details[:google] ||= {} - contact_details[:google][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:google][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when FACEBOOK contact_details[:facebook] ||= {} - contact_details[:facebook][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:facebook][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when TWITTER contact_details[:twitter] ||= {} - contact_details[:twitter][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:twitter][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when YELP contact_details[:yelp] ||= {} - contact_details[:yelp][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:yelp][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when TRIP_ADVISOR contact_details[:trip_advisor] ||= {} - contact_details[:trip_advisor][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:trip_advisor][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when FAX contact_details[:fax] ||= {} - contact_details[:fax][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:fax][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when MOBILE_WEBSITE contact_details[:mobile_website] ||= {} - contact_details[:mobile_website][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:mobile_website][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} when SHORTY_URL contact_details[:shorty_url] ||= {} - contact_details[:shorty_url][c[:identifiant]] = c[:coordonnees][:fr] + contact_details[:shorty_url][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)} else end end end contact_details \ No newline at end of file