Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rahilsondhi/ruby-lastfm
base: 7d1dff9811
...
head fork: rahilsondhi/ruby-lastfm
compare: 28e57bf876
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 17 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +16 −0 lib/lastfm/method_category/chart.rb
View
1  .gitignore
@@ -7,3 +7,4 @@ vendor/bundle
.bundle
Gemfile.lock
bin
+.rvmrc
View
16 lib/lastfm/method_category/chart.rb
@@ -5,9 +5,25 @@ class Chart < Base
response.xml['artists']['artist']
end
+ regular_method :get_hyped_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
+
+ regular_method :get_loved_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
+
regular_method :get_top_artists, [], [[:page, nil], [:limit, nil]] do |response|
response.xml['artists']['artist']
end
+
+ regular_method :get_top_tags, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tags']['tag']
+ end
+
+ regular_method :get_top_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
end
end
end

No commit comments for this range

Something went wrong with that request. Please try again.