archseer / ruby-mpd

ruby-mpd is a powerful object-oriented Music Player Daemon library, forked from librmpd.
GNU General Public License v2.0
83 stars 32 forks source link

Extended features #44

Closed PhilippMeissner closed 5 years ago

PhilippMeissner commented 9 years ago

Hi there,

Now, again, I offer you this pull request. It adds a few more functions here and there as well as it offers the user to use the new features with an optional hash (eg. searching strictly or loose).

This time I also fixed the tests as I totally forgot about them the last time.

Thanks for your work, I hope this can be of any use :)

archseer commented 9 years ago

Hmm, I honestly prefer the where method as a more general approach, I think the only reason I kept songs_by_artist is because it was in the original gem.

Regarding the data attribute reader, preferable is to just use to_h.