All files / src/lib Analytics.js

100% Statements 7/7
100% Branches 0/0
100% Functions 5/5
100% Lines 7/7
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                2x         5x 5x     1x     1x     1x     1x      
//------------------------------------------------------------------------------
// Name: src/lib/Analytics.js
// Author: rand0me <not.randome@gmail.com>
// Timestamp: 2016-10-05T13:29:32.000Z
// Description:
//    Analytics
//------------------------------------------------------------------------------
 
const PREFIX = 'inhabit:module:';
 
 
export default class Analytics {
  constructor(client) {
    this.client = client;
    this.info = {};
  }
  start() {
    return this.client.get(`${PREFIX}start`, this.info);
  }
  end() {
    return this.client.get(`${PREFIX}end`, this.info);
  }
  interaction() {
    return this.client.get(`${PREFIX}interaction`, this.info);
  }
  error(){
    return this.client.get(`${PREFIX}interaction`,this.info);
  }
}