Module: Togglapper::Summaries::Date
- Included in:
- Togglapper::Summary
- Defined in:
- lib/togglapper/summaries/date.rb
Instance Method Summary collapse
- #daily_by_description(description) ⇒ Object
- #daily_by_tags(*search_tags) ⇒ Object
- #dailyreport ⇒ Object
Instance Method Details
#daily_by_description(description) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/togglapper/summaries/date.rb', line 15 def daily_by_description(description) day_entries = entry_info(entries_by_today) day_entries.select do |entry| entry[:description] && entryentry[:description] =~ description end end |
#daily_by_tags(*search_tags) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/togglapper/summaries/date.rb', line 8 def (*) day_entries = entry_info(entries_by_today) day_entries.select do |entry| entry[:tags] && entry[:tags].any? { |tag| .include?(tag) } end end |
#dailyreport ⇒ Object
4 5 6 |
# File 'lib/togglapper/summaries/date.rb', line 4 def dailyreport today_entry_reports end |