MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / Class

Class Class

app/models/class.js:3–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Model, belongsTo, attr } from '@warp-drive/legacy/model';
2
3export default class Class extends Model {
4 @attr()
5 name;
6
7 @attr()
8 methods;
9
10 @attr()
11 properties;
12
13 @attr()
14 access;
15
16 @attr()
17 events;
18
19 @attr()
20 description;
21
22 @attr()
23 ogDescription;
24
25 @attr()
26 extends;
27
28 @attr()
29 uses;
30
31 @attr()
32 since;
33
34 @attr()
35 file;
36
37 @attr()
38 line;
39
40 @attr()
41 module;
42
43 @belongsTo('class', { async: true, inverse: null })
44 parentClass;
45
46 @belongsTo('project-version', { async: false, inverse: null })
47 projectVersion;
48
49 get project() {
50 return this.projectVersion.get('project');
51 }
52
53 get extendedClassProjectName() {
54 return this.projectNameFromClassName(this['extends']);
55 }
56
57 get usedClassProjectName() {
58 return this.projectNameFromClassName(this.uses);
59 }
60

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected