Class: OneApm::Metrics::ChainedStats
- Inherits:
-
Object
- Object
- OneApm::Metrics::ChainedStats
- Defined in:
- lib/one_apm/metrics/stats.rb
Instance Attribute Summary collapse
-
#scoped_stats ⇒ Object
Returns the value of attribute scoped_stats.
-
#unscoped_stats ⇒ Object
Returns the value of attribute unscoped_stats.
Instance Method Summary collapse
-
#initialize(scoped_stats, unscoped_stats) ⇒ ChainedStats
constructor
A new instance of ChainedStats.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(scoped_stats, unscoped_stats) ⇒ ChainedStats
Returns a new instance of ChainedStats.
162 163 164 165 |
# File 'lib/one_apm/metrics/stats.rb', line 162 def initialize(scoped_stats, unscoped_stats) @scoped_stats = scoped_stats @unscoped_stats = unscoped_stats end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
167 168 169 170 |
# File 'lib/one_apm/metrics/stats.rb', line 167 def method_missing(method, *args) unscoped_stats.send(method, *args) scoped_stats.send(method, *args) end |
Instance Attribute Details
#scoped_stats ⇒ Object
Returns the value of attribute scoped_stats.
160 161 162 |
# File 'lib/one_apm/metrics/stats.rb', line 160 def scoped_stats @scoped_stats end |
#unscoped_stats ⇒ Object
Returns the value of attribute unscoped_stats.
160 161 162 |
# File 'lib/one_apm/metrics/stats.rb', line 160 def unscoped_stats @unscoped_stats end |