Sha256: 29b989be6df238c90c9e42f2a4d150c7d57d52ea326c7439960526188ef146a3
Contents?: true
Size: 600 Bytes
Versions: 35
Compression:
Stored size: 600 Bytes
Contents
var util = require('../util'); var property = util.property; function ResourceWaiter(name, waiter, options) { options = options || {}; property(this, 'name', name); property(this, 'api', options.api, false); if (waiter.operation) { property(this, 'operation', util.string.lowerFirst(waiter.operation)); } var self = this; var keys = [ 'type', 'description', 'delay', 'maxAttempts', 'acceptors' ]; keys.forEach(function(key) { var value = waiter[key]; if (value) { property(self, key, value); } }); } module.exports = ResourceWaiter;
Version data entries
35 entries across 35 versions & 1 rubygems