Module: LinkedIn::Api::QueryMethods

Included in:
Client
Defined in:
lib/linked_in/api/query_methods.rb

Instance Method Summary collapse

Instance Method Details

#company(options = {}) ⇒ Object



27
28
29
30
# File 'lib/linked_in/api/query_methods.rb', line 27

def company(options = {})
  path   = company_path(options)
  simple_query(path, options)
end

#company_search(options = {}) ⇒ Object



32
33
34
35
36
37
# File 'lib/linked_in/api/query_methods.rb', line 32

def company_search(options = {})
  path = "/company-search:(companies)"
  path += "?keywords=#{CGI.escape(options[:keywords])}"
  result_json = get(to_uri(path, options))
  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(options={})
  path = "#{person_path(options)}/connections"
  simple_query(path, options)
end

#job_search(options = {}) ⇒ Object



21
22
23
24
25
# File 'lib/linked_in/api/query_methods.rb', line 21

def job_search(options={})
  path = job_search_path(options)
  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(options={})
  path = "#{person_path(options)}/network/updates"
  simple_query(path, options)
end

#profile(options = {}) ⇒ Object



6
7
8
9
# File 'lib/linked_in/api/query_methods.rb', line 6

def profile(options={})
  path = person_path(options)
  simple_query(path, options)
end