Class: SOF::TimeSpan::DatePeriod::Quarter
- Inherits:
-
SOF::TimeSpan::DatePeriod
- Object
- SOF::TimeSpan::DatePeriod
- SOF::TimeSpan::DatePeriod::Quarter
- Defined in:
- lib/sof/time_span.rb
Instance Method Summary collapse
Instance Method Details
#beginning_of_period(date) ⇒ Object
137 138 139 |
# File 'lib/sof/time_span.rb', line 137 def beginning_of_period(date) date.beginning_of_quarter end |
#duration ⇒ Object
129 130 131 |
# File 'lib/sof/time_span.rb', line 129 def duration (count * 3).months end |
#end_of_period(date) ⇒ Object
133 134 135 |
# File 'lib/sof/time_span.rb', line 133 def end_of_period(date) date.end_of_quarter end |