Class: PrettyTime::Minutes

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

Overview

Subclass of UnitofTime converts minutes 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



68
69
70
# File 'lib/pretty_time/pretty_time.rb', line 68

def to_seconds
  @value.minutes
end