Module: LinkedIn::Api::QueryMethods
- Included in:
- Client
- Defined in:
- lib/linked_in/api/query_methods.rb
Instance Method Summary collapse
- #company(options = {}) ⇒ Object
- #company_search(options = {}) ⇒ Object
- #connections(options = {}) ⇒ Object
- #job_search(options = {}) ⇒ Object
- #network_updates(options = {}) ⇒ Object
- #profile(options = {}) ⇒ Object
Instance Method Details
#company(options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/linked_in/api/query_methods.rb', line 27 def company( = {}) path = company_path() simple_query(path, ) end |
#company_search(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/linked_in/api/query_methods.rb', line 32 def company_search( = {}) path = "/company-search:(companies)" path += "?keywords=#{CGI.escape([:keywords])}" result_json = get(to_uri(path, )) Mash.from_json(result_json) end |
#connections(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/linked_in/api/query_methods.rb', line 11 def connections(={}) path = "#{person_path()}/connections" simple_query(path, ) end |
#job_search(options = {}) ⇒ Object
21 22 23 24 25 |
# File 'lib/linked_in/api/query_methods.rb', line 21 def job_search(={}) path = job_search_path() result_json = get path Mash.from_json(result_json) end |
#network_updates(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/linked_in/api/query_methods.rb', line 16 def network_updates(={}) path = "#{person_path()}/network/updates" simple_query(path, ) end |
#profile(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/linked_in/api/query_methods.rb', line 6 def profile(={}) path = person_path() simple_query(path, ) end |