Class: Fluent::Plugin::SyscheckMountsInput::SysMount
- Inherits:
-
Object
- Object
- Fluent::Plugin::SyscheckMountsInput::SysMount
- Defined in:
- lib/fluent/plugin/in_syscheck_mounts.rb
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#fstype ⇒ Object
readonly
Returns the value of attribute fstype.
-
#mountpoint ⇒ Object
readonly
Returns the value of attribute mountpoint.
Instance Method Summary collapse
-
#initialize(device:, mountpoint:, fstype:) ⇒ SysMount
constructor
A new instance of SysMount.
- #to_h ⇒ Object
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
#device ⇒ Object (readonly)
Returns the value of attribute device.
181 182 183 |
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 181 def device @device end |
#fstype ⇒ Object (readonly)
Returns the value of attribute fstype.
181 182 183 |
# File 'lib/fluent/plugin/in_syscheck_mounts.rb', line 181 def fstype @fstype end |
#mountpoint ⇒ Object (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_h ⇒ Object
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 |