Sha256: 791203c85b45a5f2d6362e6e2fd4a2164b628c80c40dc9eace32ec1f1ea7ae2e

Contents?: true

Size: 510 Bytes

Versions: 32

Compression:

Stored size: 510 Bytes

Contents

module Evertils
  module Type
    class MonthlyTaskSummary < Type::Base
      NOTEBOOK = :'Monthly Task Summaries'
      COLOUR = 0xffe8b7

      #
      # @since 0.3.7
      def initialize(config, *args)
        super(config, *args)

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

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
evertils-0.3.21 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.20 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.19 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.18 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.17 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.16 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.15 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.14.1 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.14 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.13 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.12 lib/evertils/types/monthly-task-summary.rb
evertils-0.3.11 lib/evertils/types/monthly-task-summary.rb