Class MusicBrainz::Webservice::AbstractFilter
In: lib/rbrainz/webservice/filter.rb
Parent: Object

Base class for all filter classes.

Filter classes are initialized with a set of criteria and are then applied to collections of items. The criteria are usually strings or integer values, depending on the filter.

Methods

new   to_s  

Public Class methods

The parameter filter is a hash with filter options. See the concrete classes for a description of those options.

The following options are available for all filters:

:limit
The maximum number of entries returned. Defaults to 25, the maximum allowed value is 100.
:offset
Return search results starting at a given offset. Used for paging through more than one page of results.
:query
A Lucene search query. The query parameter is a search string which will be passed to the underlying Lucene search engine. It must follow the syntax described in musicbrainz.org/doc/TextSearchSyntax.

Public Instance methods

Returns the filter list as a query string (without leading &).

[Validate]