Class: LightStep::Transport::Callback
- Defined in:
- lib/lightstep/transport/callback.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #close ⇒ Object
- #flush ⇒ Object
-
#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
#clear ⇒ Object
18 19 |
# File 'lib/lightstep/transport/callback.rb', line 18 def clear end |
#close ⇒ Object
15 16 |
# File 'lib/lightstep/transport/callback.rb', line 15 def close end |
#flush ⇒ Object
21 22 |
# File 'lib/lightstep/transport/callback.rb', line 21 def flush end |
#report(report) ⇒ Object
10 11 12 13 |
# File 'lib/lightstep/transport/callback.rb', line 10 def report(report) @callback.call(report) nil end |