Class: LastFM::Group

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



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

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:



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

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:



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

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:



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

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:



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

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:



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

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