Module: HubspotV3::Helpers
Instance Method Summary collapse
Instance Method Details
#map_search_by_email(results_ary) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/hubspot_v3/helpers.rb', line 5 def map_search_by_email(results_ary) results_ary.inject({}) do |hash, result| hash[result.fetch('properties').fetch('email')] = result hash end end |