Module: LinkedIn::Search
- Included in:
- Client
- Defined in:
- lib/linked_in/search.rb
Instance Method Summary collapse
Instance Method Details
#search(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/linked_in/search.rb', line 5 def search(={}) path = "/people-search" = { :keywords => } if .is_a?(String) if fields = .delete(:fields) path +=":(#{fields.map{ |f| f.to_s.gsub("_","-") }.join(',')})" end = () result_json = get(to_uri(path, )) Mash.from_json(result_json) end |