import Ember from 'ember' export default Ember.Object.reopen getPropertyValues: (names...) -> result = Ember.A() for name in names result.push @get(name) result toProperties: -> result = {} for key, value of @ continue unless @hasOwnProperty(key) continue if key is 'changeset' if typeof(value?.format) is 'function' value = value.format() else if typeof(value?.toISOString) is 'function' value = value.toISOString() result[key] = value result