Class: Count
- Inherits:
-
Natural::Fragment
- Object
- Tree::TreeNode
- Natural::Fragment
- Count
- Defined in:
- lib/natural/fragments/example.rb
Overview
e.g. how many
Instance Attribute Summary
Attributes inherited from Natural::Fragment
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Natural::Fragment
#all_filters, #clone, #data, #id_range, #ids, #ids=, #initialize, #pretty_to_s, recurse_alternatives, #to_s
Constructor Details
This class inherits a constructor from Natural::Fragment
Class Method Details
.find(options) ⇒ Object
5 6 7 |
# File 'lib/natural/fragments/example.rb', line 5 def self.find() super .merge(:looking_for => ['how many']) end |
Instance Method Details
#aggregator ⇒ Object
8 9 10 |
# File 'lib/natural/fragments/example.rb', line 8 def aggregator 'count' end |