Module: YellowApi::Client::GetTypeAhead
- Included in:
- YellowApi::Client
- Defined in:
- lib/yellow_api/client/get_type_ahead.rb
Instance Method Summary (collapse)
-
- (Hash) get_type_ahead(text, field, lang = "en")
The type ahead call returns search suggestions based on the characters a user has entered.
Instance Method Details
- (Hash) get_type_ahead(text, field, lang = "en")
The type ahead call returns search suggestions based on the characters a user has entered. The user can select the suggested term, saving them from having to enter all the characters for their search term.
19 20 21 22 23 24 25 26 |
# File 'lib/yellow_api/client/get_type_ahead.rb', line 19 def get_type_ahead(text, field, lang="en") = { :text => text, :lang => lang, :field => field.to_s.upcase } get('/GetTypeAhead/', ) end |