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

An interface all concrete web service classes have to implement.

All web service classes have to implement this and follow the method specifications.

Methods

get   post  

Public Instance methods

Query the web service.

This method must be implemented by the concrete webservices and should return an IO object on success.

Options:

:id
A MBID if querying for a single ressource.
:include
An include object (see AbstractIncludes).
:filter
A filter object (see AbstractFilter).
:version
The version of the webservice to use. Defaults to 1.

Submit data to the web service.

This method must be implemented by the concrete webservices and should return an IO object on success.

Options:

:id
A MBID if querying for a single ressource.
:params
A Hash or Array containing the data to post as key/value pairs.
:version
The version of the webservice to use. Defaults to 1.

[Validate]