class Numeric

def days

2.days # => 2 days

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