Class: LastFM::Api::Group

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

Class Method Summary collapse

Class Method Details

.get_hype(params) ⇒ Object

Get the hype list for a group.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

See Also:



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

def get_hype( params )
  LastFM.get( "group.getHype", params )
end

.get_members(params) ⇒ Object

Get the list of members for a group.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

  • :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/group.rb', line 20

def get_members( params )
  LastFM.get( "group.getMembers", params )
end

.get_weekly_album_chart(params) ⇒ Object

Get an album chart for a group, for a given date range. If no date range is supplied, return the most recent.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

  • :from (Time, optional)

    date at which the chart should start from (see: Group.get_weekly_chart_list)

  • :to (Time, optional)

    date at which the chart should end on (see: Group.get_weekly_chart_list)

See Also:



31
32
33
# File 'lib/lastfm/api/group.rb', line 31

def get_weekly_album_chart( params )
  LastFM.get( "group.getWeeklyAlbumChart", params )
end

.get_weekly_artist_chart(params) ⇒ Object

Get an artist chart for a group, for a given date range. If no date range is supplied, return the most recent.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

  • :from (Time, optional)

    date at which the chart should start from (see: Group.get_weekly_chart_list)

  • :to (Time, optional)

    date at which the chart should end on (see: Group.get_weekly_chart_list)

See Also:



42
43
44
# File 'lib/lastfm/api/group.rb', line 42

def get_weekly_artist_chart( params )
  LastFM.get( "group.getWeeklyArtistChart", params )
end

.get_weekly_chart_list(params) ⇒ Object

Get the list of available charts for a group, expressed as date ranges which can be sent to the chart services.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

See Also:



51
52
53
# File 'lib/lastfm/api/group.rb', line 51

def get_weekly_chart_list( params )
  LastFM.get( "group.getWeeklyChartList", params )
end

.get_weekly_track_chart(params) ⇒ Object

Get a track chart for a group, for a given date range. If no date range is supplied, return the most recent.

Parameters:

  • params (Hash)

    a customizable set of options

Options Hash (params):

  • :group (String, required)

    the last.fm group name

  • :from (Time, optional)

    date at which the chart should start from (see: Group.get_weekly_chart_list)

  • :to (Time, optional)

    date at which the chart should end on (see: Group.get_weekly_chart_list)

See Also:



62
63
64
# File 'lib/lastfm/api/group.rb', line 62

def get_weekly_track_chart( params )
  LastFM.get( "group.getWeeklyTrackChart", params )
end