Sha256: aa5d8e3a80d607a018ee7f2e4b0e44b9977978f3ea91530e48164f123cb2219b

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# See Pagy::Countless API documentation: https://ddnexus.github.io/pagy/api/calendar
# frozen_string_literal: true

require_relative 'month_mixin'

class Pagy # :nodoc:
  class Calendar # :nodoc:
    # Calendar quarter subclass
    class Quarter < Calendar
      DEFAULT = { order:  :asc,      # rubocop:disable Style/MutableConstant
                  format: '%Y-Q%q' }
      MONTHS  = 3  # number of months of the unit
      include MonthMixin
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagy-5.6.0 lib/pagy/calendar/quarter.rb