def get(self, instrument_id, render_format): """ Display instrument record. """ # pylint: disable=no-self-use instrument = Instrument.get(instrument_id) print(render(instrument, render_format))
def update(self, instrument_id, name, render_format): """ Update instrument record. """ # pylint: disable=no-self-use instrument = Instrument.update(instrument_id, name) print(render(instrument, render_format)) print("Instrument updated successfully.")
def create(self, facility_id, name, render_format): """ Create instrument record. """ # pylint: disable=no-self-use instrument = Instrument.create(facility_id, name) print(render(instrument, render_format)) print("Instrument created successfully.")
def list(self, facility_id, limit, offset, order_by, render_format): """ Display list of instrument records. """ # pylint: disable=too-many-arguments # pylint: disable=no-self-use instruments = Instrument.list(facility_id, limit, offset, order_by) print(render(instruments, render_format))
def get(self, facility_id, render_format): """ Display facility record. """ # pylint: disable=no-self-use facility = Facility.get(facility_id) print(render(facility, render_format)) if render_format == 'table': instruments = Instrument.list(facility_id) print(render(instruments, render_format))