Module: Yt::Associations::HasReports
- Included in:
- Models::Base
- Defined in:
- lib/yt/associations/has_reports.rb
Overview
Instance Method Summary collapse
-
#has_report(metric) ⇒ Object
Defines two public instance methods to access the reports of a resource for a specific metric.
Instance Method Details
#has_report(metric) ⇒ Object
Defines two public instance methods to access the reports of a resource for a specific metric.
27 28 29 30 31 32 33 34 |
# File 'lib/yt/associations/has_reports.rb', line 27 def has_report(metric) require 'yt/collections/reports' define_metric_on_method metric define_metric_method metric define_range_metric_method metric define_all_metric_method metric end |