import Client from './client'; export default class PoolUpdates extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'hilltop-api'; super(options); } getRetiring(options = {}) { return this.makeRequest(`${this.host}/pool_updates/retiring`, options); } getByPoolId(poolId, options = {}) { return this.makeRequest(`${this.host}/pool_updates/${poolId}`, options); } get(options = {}) { return this.makeRequest(`${this.host}/pool_updates`, options); } }