Class: NewRelic::TransactionSample::IDGenerator
- Inherits:
-
Object
- Object
- NewRelic::TransactionSample::IDGenerator
- Defined in:
- lib/new_relic/transaction_sample.rb
Overview
Generates segment ids for json transaction segments
Instance Method Summary collapse
-
#initialize ⇒ IDGenerator
constructor
A new instance of IDGenerator.
- #next_id ⇒ Object
Constructor Details
#initialize ⇒ IDGenerator
Returns a new instance of IDGenerator.
646 647 648 |
# File 'lib/new_relic/transaction_sample.rb', line 646 def initialize @next_id = 0 end |
Instance Method Details
#next_id ⇒ Object
649 650 651 |
# File 'lib/new_relic/transaction_sample.rb', line 649 def next_id @next_id += 1 end |