{"size": 389, "ext": "js", "max_stars_repo_path": "assets/js/model/element/sortable-item.js", "max_stars_repo_name": "majacQ/web.client.simplytestable.com", "max_stars_repo_stars_event_min_datetime": "2017-12-20T20:04:49.000Z", "max_stars_repo_stars_event_max_datetime": "2017-12-20T20:04:49.000Z", "max_issues_repo_path": "assets/js/model/element/sortable-item.js", "max_issues_repo_name": "webignition/web.client.simplytestable.com", "max_issues_repo_issues_event_min_datetime": "2019-01-04T10:56:06.000Z", "max_issues_repo_issues_event_max_datetime": "2019-04-22T16:29:11.000Z", "max_forks_repo_path": "assets/js/model/element/sortable-item.js", "max_forks_repo_name": "majacQ/web.client.simplytestable.com", "max_forks_repo_forks_event_min_datetime": "2021-05-31T01:02:57.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-31T01:02:57.000Z"}
{"max_stars_count": 1, "max_issues_count": 352, "max_forks_count": 1, "avg_line_length": 18.5238095238, "max_line_length": 79, "alphanum_fraction": 0.5449871465}
class SortableItem {
    /**
     * @param {Element} element
     */
    constructor (element) {
        this.element = element;
        this.sortValues = JSON.parse(element.getAttribute('data-sort-values'));
    };

    /**
     * @param {string} key
     *
     * @returns {*}
     */
    getSortValue (key) {
        return this.sortValues[key];
    }
}

module.exports = SortableItem;
