method

hours

rails latest stable - Class: Numeric
hours()
public

Returns a Duration instance matching the number of hours provided.

2.hours # => 2 hours