Metric
======

.. currentmodule:: lsst.verify

.. autoclass:: Metric
   :show-inheritance:

   .. rubric:: Attributes Summary

   .. autosummary::

      ~Metric.description
      ~Metric.json
      ~Metric.name
      ~Metric.reference
      ~Metric.reference_doc
      ~Metric.reference_page
      ~Metric.reference_url
      ~Metric.tags
      ~Metric.unit
      ~Metric.unit_str

   .. rubric:: Methods Summary

   .. autosummary::

      ~Metric.check_unit
      ~Metric.deserialize
      ~Metric.jsonify_dict
      ~Metric.write_json

   .. rubric:: Attributes Documentation

   .. autoattribute:: description
   .. autoattribute:: json
   .. autoattribute:: name
   .. autoattribute:: reference
   .. autoattribute:: reference_doc
   .. autoattribute:: reference_page
   .. autoattribute:: reference_url
   .. autoattribute:: tags
   .. autoattribute:: unit
   .. autoattribute:: unit_str

   .. rubric:: Methods Documentation

   .. automethod:: check_unit
   .. automethod:: deserialize
   .. automethod:: jsonify_dict
   .. automethod:: write_json