Skip to content

Commit

Permalink
Fix bad endpoint path
Browse files Browse the repository at this point in the history
The latter two types have routes that are singular, not plural
  • Loading branch information
Paul S. Chun committed Dec 11, 2014
1 parent 5437d10 commit 4385d84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/linked_in/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Search < APIResource
# You can use the same API to search through Companies and Jobs.
#
# @!macro search_options
# @options opts [String] :type either "people", "companies", or
# "jobs"
# @options opts [String] :type either "people", "company", or
# "job"
# @options opts [String] :keywords various keywords to search for
# @options opts [Array, Hash] :fields fields to fetch. The
# list of fields can be found at
Expand All @@ -35,7 +35,7 @@ class Search < APIResource
# @overload search(keyword_string, type)
# Keyword search through people
# @param [String] keywords search keywords
# @param [String] type either "people", "companies", or "jobs"
# @param [String] type either "people", "company", or "job"
# @overload search(opts)
# Searches based on various options
# @param [Hash] opts search options
Expand All @@ -44,7 +44,7 @@ class Search < APIResource
# Searches for a type based on various options
# @param [Hash] opts search options
# @macro search_options
# @param [String] type either "people", "companies", or "jobs"
# @param [String] type either "people", "company", or "job"
def search(options={}, type='people')
options, type = prepare_options(options, type)
path = "/#{type.to_s}-search"
Expand Down

0 comments on commit 4385d84

Please sign in to comment.