Class: Immunio::InputWrapper
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Immunio::InputWrapper
- Defined in:
- lib/immunio/plugins/http_tracker.rb
Instance Method Summary collapse
- #each ⇒ Object
- #gets ⇒ Object
-
#initialize(input) ⇒ InputWrapper
constructor
A new instance of InputWrapper.
- #read ⇒ Object
Constructor Details
#initialize(input) ⇒ InputWrapper
Returns a new instance of InputWrapper.
162 163 164 165 |
# File 'lib/immunio/plugins/http_tracker.rb', line 162 def initialize(input) super input @input = input end |
Instance Method Details
#each ⇒ Object
183 184 185 186 187 188 189 190 191 192 |
# File 'lib/immunio/plugins/http_tracker.rb', line 183 def each Request.time "plugin", "#{Module.nesting[0]}::#{__method__}" do @input.each do |chunk| report_chunk chunk Request.pause "plugin", "#{Module.nesting[0]}::#{__method__}" do yield chunk end end end end |