Class: PrettyTime::Hours

Inherits:
UnitOfTime show all
Defined in:
lib/pretty_time/pretty_time.rb

Overview

Subclass of UnitofTime converts hours into seconds

Instance Attribute Summary

Attributes inherited from UnitOfTime

#value

Instance Method Summary collapse

Methods inherited from UnitOfTime

#initialize

Constructor Details

This class inherits a constructor from PrettyTime::UnitOfTime

Instance Method Details

#to_secondsObject



60
61
62
# File 'lib/pretty_time/pretty_time.rb', line 60

def to_seconds
  @value.hours
end