class_docstr: Rational field based on GMPY's ``mpq`` type.
  
  This will be the implementation of :ref:`QQ` if ``gmpy`` or ``gmpy2`` is
  installed. Elements will be of type ``gmpy.mpq``.
docstr: Returns ring associated with ``self``. 
docstr_tok: ["Returns","ring","associated","with","``","self","``","."]
code: def get_ring(self):
      """Returns ring associated with ``self``."""
      from sympy.polys.domains import GMPYIntegerRing
  
      return GMPYIntegerRing()
  
imports: from sympy.polys.domains.groundtypes import GMPYRational, SymPyRational, gmpy_numer, gmpy_denom, factorial
  from sympy.polys.domains.rationalfield import RationalField
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 2 for calling the GMPYRationalField obj's underlying member method code with example usage: obj.get_ring() and returns: GMPYIntegerRing