Class: Informers::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/informers/processors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_extractorObject (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