Sha256: bc5edd932e2aca1532f89e3f3909d820dc767a3a0ed4cfbe94b9ca1fcfe463f5
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
module MusicBrainz class Base def self.get(method, mbid, query) includes="?inc=#{query}" unless query==[] path="/ws/2/#{method}/#{mbid}#{includes}" uri_host="musicbrainz.org" uri_port="80" http = Net::HTTP.new(uri_host, uri_port).get(path) response = http.response.code body = http.response.body body=Hash.from_xml(body) if response=="200" return body else return false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
musicbrainz_ruby-0.0.5 | lib/musicbrainz/base.rb |