Class: LightStep::Transport::Callback
- Defined in:
- lib/lightstep/transport/callback.rb
Instance Method Summary collapse
-
#initialize(callback:) ⇒ Callback
constructor
A new instance of Callback.
- #report(report) ⇒ Object
Constructor Details
#initialize(callback:) ⇒ Callback
Returns a new instance of Callback.
6 7 8 |
# File 'lib/lightstep/transport/callback.rb', line 6 def initialize(callback:) @callback = callback end |
Instance Method Details
#report(report) ⇒ Object
10 11 12 13 |
# File 'lib/lightstep/transport/callback.rb', line 10 def report(report) @callback.call(report) nil end |