~mapperr/trl

ref: 3af86c0080c0675344c7940f9cb7003f1274dde1 trl/trullo/trl_board.py -rw-r--r-- 402 bytes
3af86c00 — mapperr Use names as bases for shortcuts 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from typing import Dict, List

import attr

from trullo.shortener import Shortener
from trullo.trl_list import TrlList
from trullo.trl_card import TrlCard


@attr.s(auto_attribs=True)
class TrlBoard:
    id: str
    short_link: str
    lists: List[TrlList]
    cards: List[TrlCard]
    raw_data: Dict

    def get_normalized_name(self) -> str:
        return Shortener.normalize(self.raw_data['name'])