Module: Mostscrobbled
- Defined in:
- lib/mostscrobbled.rb,
lib/mostscrobbled/artist.rb,
lib/mostscrobbled/last_fm.rb,
lib/mostscrobbled/version.rb
Defined Under Namespace
Modules: LastFm Classes: Artist
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
-
.find(opts = {}) ⇒ Object
The main call to find the artists for an account on last.fm.
Class Method Details
.find(opts = {}) ⇒ Object
The main call to find the artists for an account on last.fm
Required paramaters
* :username - A last.fm username
* :api_key - A last.fm api key
9 10 11 12 13 14 15 |
# File 'lib/mostscrobbled.rb', line 9 def self.find(opts = {}) begin Mostscrobbled::LastFm::Connection.new(opts).artists rescue Mostscrobbled::LastFm::Error => e puts e end end |