PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Code_session.j

http://github.com/chollier/Edgar
Unknown | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | 316a556e76a55941ee70d2040a387336 MD5 | raw file
 1@import <CappuccinoResource/CRBase.j>
 2
 3@implementation Code_session : CappuccinoResource
 4{
 5	CPNumber agence_id @accessors;
 6	CPDate start_date @accessors;
 7	
 8	CPDate created_at;
 9	CPDate updated_at;
10}
11
12-(JSObject)attributes
13{
14	return {
15		"code_session": {
16			"agence_id":agence_id,
17			"start_date":[start_date toDateString],
18			"created_at":[created_at toDateString],
19			"updated_at":[updated_at toDateString]
20		}
21	}
22}
23
24@end