Class: Splunk::ExportStream
- Inherits:
-
Delegator
- Object
- Delegator
- Splunk::ExportStream
- Defined in:
- lib/splunk-sdk-ruby/collection/jobs.rb
Overview
Marks streams returned by the export endpoint for special handling.
ResultsReader is supposed to handle streams from export differently from those from other endpoints, so we use this delegator to mark them.
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #__setobj__(obj) ⇒ Object
-
#initialize(obj) ⇒ ExportStream
constructor
A new instance of ExportStream.
Constructor Details
#initialize(obj) ⇒ ExportStream
Returns a new instance of ExportStream.
131 132 133 134 |
# File 'lib/splunk-sdk-ruby/collection/jobs.rb', line 131 def initialize(obj) super # pass obj to Delegator constructor, required @delegate = obj # store obj for future use end |
Instance Method Details
#__getobj__ ⇒ Object
136 137 138 |
# File 'lib/splunk-sdk-ruby/collection/jobs.rb', line 136 def __getobj__() @delegate end |
#__setobj__(obj) ⇒ Object
140 141 142 |
# File 'lib/splunk-sdk-ruby/collection/jobs.rb', line 140 def __setobj__(obj) @delegate = obj end |