     else
       "#{@name} #{_.first(@periods).name} period"
 
-  isIncomplete: -> not (@name or @to)
 
   set: (attributes) ->
     _.extend(@, attributes)

    @set(attributes)
    _.bindAll(@, '_onRegistered', '_onConfirmed')


  isPending: ->
    @status is "pending"

  description: ->
    if @isIncomplete() # still fetching


  confirm: ->
    api.channel.once "course.#{@id}.receive.confirmation.*", @_onConfirmed
    api.channel.emit("course.#{@id}.send.confirmation", data: { id: @id })

  _onConfirmed:  ({data}) ->
    _.extend(@, data.to.course)
