Class: Informers::Processor
- Inherits:
-
Object
- Object
- Informers::Processor
- Defined in:
- lib/informers/processors.rb
Instance Attribute Summary collapse
-
#feature_extractor ⇒ Object
readonly
Returns the value of attribute feature_extractor.
Instance Method Summary collapse
- #call(input, *args) ⇒ Object
-
#initialize(feature_extractor) ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize(feature_extractor) ⇒ Processor
Returns a new instance of Processor.
791 792 793 |
# File 'lib/informers/processors.rb', line 791 def initialize(feature_extractor) @feature_extractor = feature_extractor end |
Instance Attribute Details
#feature_extractor ⇒ Object (readonly)
Returns the value of attribute feature_extractor.
789 790 791 |
# File 'lib/informers/processors.rb', line 789 def feature_extractor @feature_extractor end |
Instance Method Details
#call(input, *args) ⇒ Object
795 796 797 |
# File 'lib/informers/processors.rb', line 795 def call(input, *args) @feature_extractor.(input, *args) end |