Class: Fusuma::Plugin::Inputs::Input
- Inherits:
-
Base
- Object
- Base
- Fusuma::Plugin::Inputs::Input
show all
- Defined in:
- lib/fusuma/plugin/inputs/input.rb
Overview
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
|
#run ⇒ Object
12
13
14
|
# File 'lib/fusuma/plugin/inputs/input.rb', line 12
def run
raise NotImplementedError, "override #{self.class.name}##{__method__}"
end
|
#tag ⇒ Object
22
23
24
|
# File 'lib/fusuma/plugin/inputs/input.rb', line 22
def tag
self.class.name.split('Inputs::').last.underscore
end
|