Sha256: 5a68cd83f38f88acd1265573bcca6118990830355063004f904461d6a0a8c65b
Contents?: true
Size: 318 Bytes
Versions: 35
Compression:
Stored size: 318 Bytes
Contents
module Renalware class MonthPeriod attr_reader :month, :year, :start, :finish def initialize(month:, year:) @month = month @year = year @start = Time.new(year, month, 1, 0, 0, 0) @finish = start.end_of_month.end_of_day end def to_range start..finish end end end
Version data entries
35 entries across 35 versions & 1 rubygems