Class: URI::HTTP
- Inherits:
-
Object
- Object
- URI::HTTP
- Defined in:
- lib/rbrainz/core_ext/mbid.rb
Instance Method Summary collapse
-
#to_mbid(entity_type = nil) ⇒ Object
Create a MusicBrainz::Model::MBID from a HTTP object of the given type.
Instance Method Details
#to_mbid(entity_type = nil) ⇒ Object
Create a MusicBrainz::Model::MBID from a HTTP object of the given type.
- Raises
-
MusicBrainz::Model::EntityTypeNotMatchingError
27 28 29 |
# File 'lib/rbrainz/core_ext/mbid.rb', line 27 def to_mbid(entity_type=nil) ::MusicBrainz::Model::MBID.new(self.to_s, entity_type) end |