# all files / lib/Endpoints/DDragonEndpoints/ DDragonMapEndpoint.js

83.33% Statements 5/6
100% Branches 0/0
50% Functions 1/2
83.33% Lines 5/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    241×

    1×

    1×

    1×

    1×
     import DDragonRequest, {
        DDragonRequestTypes,
    } from 'RequestClient/DDragonRequest'
    import METHOD_NAMES from 'Enums/method-names'

    class DDragonMapEndpoint {
        constructor(config) {
            this.config = config

            this.list = this.list.bind(this)
        }

        list() {
            return new DDragonRequest(
                this.config,
                'map.json',
                DDragonRequestTypes.CDN.DATA,
                METHOD_NAMES.DDRAGON.MAP_LIST,
            )
        }
    }

    export default DDragonMapEndpoint