From 4385d84a823602fdd6b105d19b13affdc58aa698 Mon Sep 17 00:00:00 2001 From: "Paul S. Chun" Date: Thu, 11 Dec 2014 11:57:09 +0100 Subject: [PATCH] Fix bad endpoint path The latter two types have routes that are singular, not plural --- lib/linked_in/search.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/linked_in/search.rb b/lib/linked_in/search.rb index 7acfb8e..5fe0150 100644 --- a/lib/linked_in/search.rb +++ b/lib/linked_in/search.rb @@ -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 @@ -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 @@ -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"