Class: Fluent::Plugin::Buffer::Metadata

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/plugin/buffer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



61
62
63
# File 'lib/fluent/plugin/buffer.rb', line 61

def tag
  @tag
end

#timekeyObject

Returns the value of attribute timekey

Returns:

  • (Object)

    the current value of timekey



61
62
63
# File 'lib/fluent/plugin/buffer.rb', line 61

def timekey
  @timekey
end

#variablesObject

Returns the value of attribute variables

Returns:

  • (Object)

    the current value of variables



61
62
63
# File 'lib/fluent/plugin/buffer.rb', line 61

def variables
  @variables
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/fluent/plugin/buffer.rb', line 62

def empty?
  timekey.nil? && tag.nil? && variables.nil?
end