class Numeric

def seconds

2.seconds # => 2 seconds

Returns a Duration instance matching the number of seconds provided.
def seconds
  ActiveSupport::Duration.seconds(self)
end