new(value, parts) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/duration.rb, line 209
    def initialize(value, parts) #:nodoc:
      @value, @parts = value, parts.to_h
      @parts.default = 0
      @parts.reject! { |k, v| v.zero? }
    end
Register or log in to add new notes.