(self, method, lookup, rdb)
This will return a domains information based on the data provided
This will return a domains information based on the data provided
This will return a domains information based on the data provided
def get(self, method, lookup, rdb):
        '''
        This will return a domains information based on the data provided
        '''
        if method == 'did':
            did = lookup
        else:
            did = self.getDID(lookup, rdb)
        results = r.table('domain').get(did).run(rdb)
        if results:
            self.did = did
            self.domain = results['domain']
            self.apikey = results['apikey']
            self.failover = results['failover']
            self.uid = results['uid']
            self.email = results['email']
            return self
        else:
            return False
def get ( self , method , lookup , rdb ) : if method == 'did' : did = lookup else : did = self . getDID ( lookup , rdb ) results = r . table ( 'domain' ) . get ( did ) . run ( rdb ) if results : self . did = did self . domain = results [ 'domain' ] self . apikey = results [ 'apikey' ] self . failover = results [ 'failover' ] self . uid = results [ 'uid' ] self . email = results [ 'email' ] return self else : return False