module LinkedIn module API module People def profile(selector = '~', **opts) execute 'people', opts.merge(selector: selector) end def connections(selector = '~', **opts) execute 'people', opts.merge(selector: selector, path: 'connections') end def people_search(query, **opts) wrapped_fields = opts[:fields].blank? ? nil : { people: opts[:fields] } execute 'people-search', opts.merge(params: query, fields: wrapped_fields) end end end end