Module: RubyPtv::Search
- Included in:
- Client
- Defined in:
- lib/ruby_ptv/client/search.rb
Instance Method Summary collapse
-
#search(search_term, options = {}) ⇒ Object
Stops, routes and myki ticket outlets that contain the specified search term.
Instance Method Details
#search(search_term, options = {}) ⇒ Object
Stops, routes and myki ticket outlets that contain the specified search term
Required params:
search_term [String]
NOTE: if search text is numeric and/or less than 3 characters
the API will only return routes
Optional params must have key matching official PTV param name
11 12 13 14 |
# File 'lib/ruby_ptv/client/search.rb', line 11 def search(search_term, = {}) encoded_string = ERB::Util.url_encode(search_term) request("search/#{encoded_string}", ) end |