{"size": 826, "ext": "js", "max_stars_repo_path": "display/ContextDisplay.js", "max_stars_repo_name": "ajkula/rooms", "max_stars_repo_stars_event_min_datetime": "2019-05-26T21:16:53.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-26T21:16:58.000Z", "max_issues_repo_path": "display/ContextDisplay.js", "max_issues_repo_name": "ajkula/rooms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "display/ContextDisplay.js", "max_forks_repo_name": "ajkula/rooms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.65, "max_line_length": 83, "alphanum_fraction": 0.49031477}
const log = console.log.bind(console);

class ContextDisplay {
  constructor(map) {
    this.context = map.getLocation().data.context;
    this.mapPosition = map.readMap();
    this.place = map.getLocation().data.place;
  }

  displayMapPosition() {
      console.log([...[
        '                 ',
        '             Map:',
        '                 ',
      ], ...this.mapPosition.split('\n').map(ln => '          ' + ln)].join('\n'));
  }

  displayPlace() {
    console.log([...[
      'p'
    ],
      ...this.place.split('\n').map(ln => '     ' + ln)].join('\n'));
  }


  Render() {
    try {
      // All display methods
      // console.clear();

      this.displayMapPosition();
      this.displayPlace();

    } catch (e) {
      console.error(e);
    }
  }
}

module.exports.ContextDisplay = ContextDisplay;