Class: Middleware::InstrumentationTest::FakeInstrumenter
- Defined in:
- test/middleware/instrumentation_test.rb
Instance Attribute Summary collapse
-
#instrumentations ⇒ Object
readonly
Returns the value of attribute instrumentations.
Instance Method Summary collapse
-
#initialize ⇒ FakeInstrumenter
constructor
A new instance of FakeInstrumenter.
- #instrument(name, env) ⇒ Object
Constructor Details
#initialize ⇒ FakeInstrumenter
Returns a new instance of FakeInstrumenter.
60 61 62 |
# File 'test/middleware/instrumentation_test.rb', line 60 def initialize @instrumentations = [] end |
Instance Attribute Details
#instrumentations ⇒ Object (readonly)
Returns the value of attribute instrumentations.
58 59 60 |
# File 'test/middleware/instrumentation_test.rb', line 58 def instrumentations @instrumentations end |
Instance Method Details
#instrument(name, env) ⇒ Object
64 65 66 67 |
# File 'test/middleware/instrumentation_test.rb', line 64 def instrument(name, env) @instrumentations << [name, env] yield end |