import Client from './client'; export default class Contexts extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'test-local-defined-enum-as-header-value'; super(options); } getById(id, options = {}) { return this.makeRequest(`${this.host}/contexts/${id}`, options); } }