Class: Soundcloud::Models::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/soundcloud/models/event.rb

Overview

SC API Attributes (as of 26/05/09):

  • type

  • id

  • created_at

  • resource_id

  • comment/track/user (embedded resource, depending on type)

Look up the resource attributes and filtering usage here:

wiki.github.com/soundcloud/api/documentation#event

Examples:

# find the last 50 (default soundcloud limit) dropbox events and display the titles of the dropped tracks
dropbox_events = sc_client.Event.find(:all,:params => {:filter => 'drop'})

dropbox_events.each do |event|
  p event.track.title
end

# find the last 50 (default soundcloud limit)  events    
sc_client.Event.find(:all)

Method Summary

Methods inherited from Base

can_be_a_single_changeable, has_many_single_changeable