Class: Evertils::Type::PriorityQueue

Inherits:
Base
  • Object
show all
Defined in:
lib/evertils/types/priority-queue.rb

Constant Summary collapse

NOTEBOOK =
:'Priority Queue'
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) ⇒ PriorityQueue

Returns a new instance of PriorityQueue.

Since:

  • 0.3.7



9
10
11
12
13
14
15
# File 'lib/evertils/types/priority-queue.rb', line 9

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

  @handler = Evertils::Helper.load('ApiEnmlHandler', @config)
  @title = @format.date_templates[NOTEBOOK]
  @content = find_previous
end

Instance Method Details

#tagsObject

Since:

  • 0.3.9



19
20
21
22
23
24
25
# File 'lib/evertils/types/priority-queue.rb', line 19

def tags
  [
    "day-#{Date.today.yday}",
    "week-#{Date.today.cweek}",
    "month-#{Date.today.month}"
  ]
end