Class: LastFM::Chart

Inherits:
Object
  • Object
show all
Defined in:
lib/lastfm/chart.rb

Class Method Summary collapse

Class Method Details

.get_hyped_artists(params) ⇒ Object

Get the hyped artists chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



10
11
12
# File 'lib/lastfm/chart.rb', line 10

def get_hyped_artists( params )
  LastFM.get( "chart.getHypedArtists", params )
end

.get_hyped_tracks(params) ⇒ Object

Get the hyped tracks chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



19
20
21
# File 'lib/lastfm/chart.rb', line 19

def get_hyped_tracks( params )
  LastFM.get( "chart.getHypedTracks", params )
end

.get_loved_tracks(params) ⇒ Object

Get the most loved tracks chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



28
29
30
# File 'lib/lastfm/chart.rb', line 28

def get_loved_tracks( params )
  LastFM.get( "chart.getLovedTracks", params )
end

.get_top_artists(params) ⇒ Object

Get the top artists chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



37
38
39
# File 'lib/lastfm/chart.rb', line 37

def get_top_artists( params )
  LastFM.get( "chart.getTopArtists", params )
end

.get_top_tags(params) ⇒ Object

Get the top tags chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



46
47
48
# File 'lib/lastfm/chart.rb', line 46

def get_top_tags( params )
  LastFM.get( "chart.getTopTags", params )
end

.get_top_tracks(params) ⇒ Object

Get the top tracks chart

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :page (Fixnum, optional)

    the page number to fetch. defaults to first page

  • :limit (Fixnum, optional)

    the number of results to fetch per page. defaults to 50

See Also:



55
56
57
# File 'lib/lastfm/chart.rb', line 55

def get_top_tracks( params )
  LastFM.get( "chart.getTopTracks", params )
end