Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 16 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import VotingUrl from './voting_url' |
||
2 | |||
3 | class EventPoll { |
||
4 | constructor (id, baseUrl, title, possibleDates) { |
||
5 | this.id = id |
||
6 | this.baseUrl = baseUrl |
||
7 | this.title = title |
||
8 | this.possibleDates = possibleDates |
||
9 | } |
||
10 | |||
11 | votingUrl () { |
||
12 | return new VotingUrl(this.baseUrl, this) |
||
13 | } |
||
14 | } |
||
15 | |||
16 | export default EventPoll |
||
17 |