Class: LogStash::Outputs::SumoLogic::Batch

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/sumologic/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers, payload) ⇒ Batch

Returns a new instance of Batch.



8
9
10
# File 'lib/logstash/outputs/sumologic/batch.rb', line 8

def initialize(headers, payload)
    @headers, @payload = headers, payload
end

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



6
7
8
# File 'lib/logstash/outputs/sumologic/batch.rb', line 6

def headers
  @headers
end

#payloadObject

Returns the value of attribute payload.



6
7
8
# File 'lib/logstash/outputs/sumologic/batch.rb', line 6

def payload
  @payload
end