docs: def rws_call(ctx, method, default_attr=None):
      """Make request to RWS"""
      try:
          response = ctx.obj['RWS'].send_request(method)
  
          if ctx.obj['RAW']:  # use response from RWS
              result = ctx.obj['RWS'].last_result.text
          elif default_attr is not None:  # human-readable summary
              result = ""
              for item in response:
                  result = result + item.__dict__[default_attr] + "\n"
          else:  # use response from RWS
              result = ctx.obj['RWS'].last_result.text
  
          if ctx.obj['OUTPUT']:  # write to file
              ctx.obj['OUTPUT'].write(result.encode('utf-8'))
          else:  # echo
              click.echo(result)
  
      except RWSException as e:
          click.echo(str(e))