source: node_modules/@swagger-api/apidom-ns-openapi-3-0/es/elements/Info.mjs

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1020 bytes
Line 
1import { ObjectElement } from '@swagger-api/apidom-core';
2class Info extends ObjectElement {
3 constructor(content, meta, attributes) {
4 super(content, meta, attributes);
5 this.element = 'info';
6 this.classes.push('info');
7 }
8 get title() {
9 return this.get('title');
10 }
11 set title(title) {
12 this.set('title', title);
13 }
14 get description() {
15 return this.get('description');
16 }
17 set description(description) {
18 this.set('description', description);
19 }
20 get termsOfService() {
21 return this.get('termsOfService');
22 }
23 set termsOfService(tos) {
24 this.set('termsOfService', tos);
25 }
26 get contact() {
27 return this.get('contact');
28 }
29 set contact(contactElement) {
30 this.set('contact', contactElement);
31 }
32 get license() {
33 return this.get('license');
34 }
35 set license(licenseElement) {
36 this.set('license', licenseElement);
37 }
38 get version() {
39 return this.get('version');
40 }
41 set version(version) {
42 this.set('version', version);
43 }
44}
45export default Info;
Note: See TracBrowser for help on using the repository browser.