Class: Evertils::Type::MonthlyTaskSummary

Inherits:
Base
  • Object
show all
Defined in:
lib/evertils/types/monthly-task-summary.rb

Constant Summary collapse

NOTEBOOK =
:'Monthly Task Summaries'
COLOUR =
0xffe8b7

Constants inherited from Base

Base::MAX_SEARCH_SIZE

Instance Attribute Summary

Attributes inherited from Base

#content, #notebook, #title

Instance Method Summary collapse

Methods inherited from Base

#create, #morning_note?, #should_create?

Constructor Details

#initialize(config, *args) ⇒ MonthlyTaskSummary

Returns a new instance of MonthlyTaskSummary.

Since:

  • 0.3.7



9
10
11
12
13
14
15
# File 'lib/evertils/types/monthly-task-summary.rb', line 9

def initialize(config, *args)
  super(config, *args)

  @name = @args.first
  @title = "#{@name} #{DateTime.now.strftime('%m-%Y')}"
  @content = @format.template_contents(NOTEBOOK)
end

Instance Method Details

#tagsObject

Since:

  • 0.3.9



19
20
21
# File 'lib/evertils/types/monthly-task-summary.rb', line 19

def tags
  ["day-#{Date.today.yday}", @args.first]
end