class Pettanr.Comic extends Peta.Binder url: '/comics/' @singular: () -> 'Comic' @plural: () -> 'Comics' 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 symbol_filename: () -> initialize: () -> if @id @url = @url + @id