Class: Splunk::ExportStream

Inherits:
Delegator
  • Object
show all
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

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