Add basic Period class

This commit is contained in:
Dzmitry Plashchynski
2015-03-01 16:06:32 +02:00
parent ab9285ce0b
commit b3a26ba7d3
7 changed files with 39 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
module Periodicity
class Period
def initialize(period)
@period = period
end
def next
@period.from_now
end
end
end