Module: Siilar::Client::Search
- Included in:
- SearchService
- Defined in:
- lib/siilar/client/search.rb
Instance Method Summary collapse
-
#suggestions(query = {}) ⇒ Object
Search for a track from external ids.
-
#tracks(query = {}) ⇒ Object
Search for a track.
Instance Method Details
#suggestions(query = {}) ⇒ Object
Search for a track from external ids
18 19 20 21 22 23 |
# File 'lib/siilar/client/search.rb', line 18 def suggestions(query = {}) = { query: query } response = client.get('2.0/suggestions', ) Struct::Suggestion.new(response) end |