Class: Fluent::Plugin::SyscheckMountsInput::SysMount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device:, mountpoint:, fstype:) ⇒ SysMount

Returns a new instance of SysMount.



183
184
185
186
187
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 183

def initialize(device:, mountpoint:, fstype:)
  @device = device
  @mountpoint = mountpoint
  @fstype = fstype
end

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



181
182
183
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 181

def device
  @device
end

#fstypeObject (readonly)

Returns the value of attribute fstype.



181
182
183
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 181

def fstype
  @fstype
end

#mountpointObject (readonly)

Returns the value of attribute mountpoint.



181
182
183
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 181

def mountpoint
  @mountpoint
end

Instance Method Details

#to_hObject



189
190
191
192
193
194
195
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 189

def to_h
  {
    'device' => device,
    'mountpoint' => mountpoint,
    'fstype' => fstype
  }
end