jam-cloud/web/app/views/api_icecast/show.rabl

20 lines
321 B
Ruby

object @mount
attributes :id, :listeners, :source_direction, :sourced
node :state do |mount|
mount.state
end
child(:source_changes => :source_changes) {
attributes :id
puts "source_change #{@object}"
node do |source_change|
partial("api_icecast/show_source_change", :object => source_change)
end
}