Class: Fluent::Plugin::TailInput::TargetInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inoObject

Returns the value of attribute ino

Returns:

  • (Object)

    the current value of ino



253
254
255
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 253

def ino
  @ino
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



253
254
255
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 253

def path
  @path
end

Instance Method Details

#==(other) ⇒ Object



254
255
256
257
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 254

def ==(other)
  return false unless other.is_a?(TargetInfo)
  self.path == other.path
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


263
264
265
266
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 263

def eql?(other)
  return false unless other.is_a?(TargetInfo)
  self.path == other.path
end

#hashObject



259
260
261
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 259

def hash
  self.path.hash
end