index.js
function Listings (options) {
    options = options || {};

    EventEmitter.call(this);

    this.accessToken = options.accessToken;
    this.steamid64 = options.steamid64;

    this.waitTime = options.waitTime || 1000;

    this.cap = -1;
    this.promotes = -1;
    this.listings = [];

    this.actions = {
        create: [],
        remove: []
    };

    this.items = options.items || new Items({ apiKey: options.apiKey });

    this.ready = false;
}
function Listings (options) {
    options = options || {};

    EventEmitter.call(this);

    this.accessToken = options.accessToken;
    this.steamid64 = options.steamid64;

    this.waitTime = options.waitTime || 1000;

    this.cap = -1;
    this.promotes = -1;
    this.listings = [];

    this.actions = {
        create: [],
        remove: []
    };

    this.items = options.items || new Items({ apiKey: options.apiKey });

    this.ready = false;
}
function Listings ( options ) { options = options || { } ; EventEmitter . call ( this ) ; this . accessToken = options . accessToken ; this . steamid64 = options . steamid64 ; this . waitTime = options . waitTime || 1000 ; this . cap = - 1 ; this . promotes = - 1 ; this . listings = [ ] ; this . actions = { create : [ ] , remove : [ ] } ; this . items = options . items || new Items ( { apiKey : options . apiKey } ) ; this . ready = false ; }
Creates a new instance of bptf-listings
@class
@param {object} options Optional settings
Creates a new instance of bptf - listings