Class: Soundcloud::Models::Event
- 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)