Method: ActiveSupport::Duration.weeks

Defined in:
activesupport/lib/active_support/duration.rb

.weeks(value) ⇒ Object

:nodoc:



171
172
173
# File 'activesupport/lib/active_support/duration.rb', line 171

def weeks(value) # :nodoc:
  new(value * SECONDS_PER_WEEK, { weeks: value }, true)
end