Class: Fusuma::Plugin::Inputs::Input

Inherits:
Base
  • Object
show all
Defined in:
lib/fusuma/plugin/inputs/input.rb

Overview

Inherite this base

Direct Known Subclasses

LibinputCommandInput

Instance Method Summary collapse

Methods inherited from Base

#config_index, #config_param_types, #config_params, inherited, plugins

Instance Method Details

#event(record: 'dummy input') ⇒ Object



16
17
18
19
20
# File 'lib/fusuma/plugin/inputs/input.rb', line 16

def event(record: 'dummy input')
  Events::Event.new(tag: tag, record: record).tap do |e|
    MultiLogger.debug(input_event: e)
  end
end

#runObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/fusuma/plugin/inputs/input.rb', line 12

def run
  raise NotImplementedError, "override #{self.class.name}##{__method__}"
end

#tagObject



22
23
24
# File 'lib/fusuma/plugin/inputs/input.rb', line 22

def tag
  self.class.name.split('Inputs::').last.underscore
end