class Rubybrainz::Search

The thing that should be called to actually hit MusicBrainz search API

Public Instance Methods

artist(artist_parameter:) click to toggle source
# File lib/rubybrainz/search.rb, line 9
def artist(artist_parameter:)
  client.get(
    url: Rubybrainz::Constants::Urls::ARTIST_URL,
    query: artist_parameter.query_string
  )
end

Private Instance Methods

client() click to toggle source
# File lib/rubybrainz/search.rb, line 18
def client
  @client ||= Rubybrainz::Http.new
end