<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get(self, sys_id=None, limit=100):
 """Returns a list of attachments :param sys_id: record sys_id to list attachments for :param limit: override the default limit of 100 :return: list of attachments """


        if sys_id:
            return self.resource.get(query={'table_sys_id': sys_id, 'table_name': self.table_name}).all()

        return self.resource.get(query={'table_name': self.table_name}, limit=limit).all()