Class: UnitOfTime
- Inherits:
-
Natural::Fragment
- Object
- Tree::TreeNode
- Natural::Fragment
- UnitOfTime
- Defined in:
- lib/natural/fragments/timeframes.rb
Overview
e.g. month
Instance Attribute Summary
Attributes inherited from Natural::Fragment
#aggregator, #filter, #score, #text
Class 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
26 27 28 |
# File 'lib/natural/fragments/timeframes.rb', line 26 def self.find() super .merge(:looking_for => ['second', 'minute', 'hour', 'day', 'week', 'month', 'quarter', 'year', 'decade', 'century']) end |