# all files / lib/Endpoints/StaticEndpoints/ StaticLanguageStringsEndpoint.js

88.89% Statements 8/9
100% Branches 0/0
50% Functions 1/2
88.89% Lines 8/9

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    361×
    1×
    1×

    1×

    1×

    1×

    1×

    1×
     import StaticSuperclass from './StaticSuperclass'
    import Request from 'RequestClient/Request'
    import METHOD_NAMES from 'Enums/method-names'

    class StaticLanguageStringsEndpoint extends StaticSuperclass {
        constructor(config, limiter) {
            super()

            this.config = config

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

            this.resourceName = 'language-strings'

            this.limiter = limiter
        }

        /**
         * Retrieves language strings data.
         *
         * Implements GET `/lol/static-data/v3/language-strings`.
         */
        list() {
            return new Request(
                this.config,
                this.serviceName,
                this.resourceName,
                METHOD_NAMES.STATIC.GET_LANGUAGE_STRINGS,
                'GET',
                this.limiter,
            )
        }
    }

    export default StaticLanguageStringsEndpoint