method

seconds

v6.0.0 - Show latest stable - Class: Numeric
seconds()
public

Returns a Duration instance matching the number of seconds provided.

2.seconds # => 2 seconds