Class: ServerTiming::Store
- Inherits:
-
Object
- Object
- ServerTiming::Store
- Defined in:
- lib/server_timing/store.rb
Instance Attribute Summary collapse
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
Instance Method Summary collapse
-
#initialize ⇒ Store
constructor
A new instance of Store.
- #track!(metrics, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ Store
Returns a new instance of Store.
5 6 |
# File 'lib/server_timing/store.rb', line 5 def initialize end |
Instance Attribute Details
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics.
3 4 5 |
# File 'lib/server_timing/store.rb', line 3 def metrics @metrics end |
Instance Method Details
#track!(metrics, options = {}) ⇒ Object
8 9 10 |
# File 'lib/server_timing/store.rb', line 8 def track!(metrics, ={}) @metrics = metrics end |