Sha256: 3d46e47b06c0326112ad8c8dbe741fabd9aaa34cb3a79cc0579846b7b7659d7e

Contents?: true

Size: 464 Bytes

Versions: 43

Compression:

Stored size: 464 Bytes

Contents

#= require medivo/models

##########  Appointment model ##############
class window.Appointment
  constructor: (@data) ->

  formattedDate: ->
    date = @data.replace('|',' ')
    Date.parse(date).toString("dddd, MMMM d, yyyy hh:mm tt")

##########  AppointmentList model ##############
class window.AppointmentList extends List

  constructor: (appointment_info, show_number)->
    super( appointment_info, show_number, Appointment, 'appointment_list_tracker')

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
medivo-0.1.1 app/assets/javascripts/medivo/lab_appointment/models.coffee
medivo-0.1.0 app/assets/javascripts/medivo/lab_appointment/models.coffee
medivo-0.0.13 app/assets/javascripts/medivo/lab_appointment/models.coffee