Sha256: 9ced5686af68e2ab926b392b77a94be01c676d5f879e2627343841ab08bd78e1

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true
require_relative './support/month_based'

module TimeBoss
  class Calendar
    class Quarter < Support::MonthBased
      NUM_MONTHS = 3

      def name
        "#{year_index}Q#{index}"
      end

      def title
        "Q#{index} #{year_index}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
timeboss-0.0.10 lib/timeboss/calendar/quarter.rb
timeboss-0.0.9 lib/timeboss/calendar/quarter.rb
timeboss-0.0.8 lib/timeboss/calendar/quarter.rb
timeboss-0.0.7 lib/timeboss/calendar/quarter.rb
timeboss-0.0.6 lib/timeboss/calendar/quarter.rb
timeboss-0.0.5 lib/timeboss/calendar/quarter.rb