Class: LastFM::Api::Chart

Inherits:
Object
  • Object
show all
Defined in:
lib/lastfm/api/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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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