class Pettanr.Sheet extends Peta.Root url: '/sheets/' @singular: () -> 'Sheet' @plural: () -> 'Sheets' defaults: { id: null, visible: 0, author_id: null } author: () -> new Pettanr.Author({id: @get('author_id')}) is_visible: (operators) -> switch super(operators) when null return true when false return false else @get('visible') > 0 initialize: () -> if @id @url = @url + @id