class Numeric
Public Instance Methods
ago()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 83 def ago ::Time.now - self end
bytes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 87 def bytes self end
Also aliased as: byte
days()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 73 def days self * 86400 end
Also aliased as: day
gigabytes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 102 def gigabytes self * 1024 * 1024 * 1024 end
Also aliased as: gigabyte
hours()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 68 def hours self * 3600 end
Also aliased as: hour
kilobytes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 92 def kilobytes self * 1024 end
Also aliased as: kilobyte
megabytes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 97 def megabytes self * 1024 * 1024 end
Also aliased as: megabyte
minutes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 63 def minutes self * 60 end
Also aliased as: minute
percents()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 53 def percents self end
Also aliased as: percent
seconds()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 58 def seconds self end
Also aliased as: second
terabytes()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 107 def terabytes self * 1024 * 1024 * 1024 * 1024 end
Also aliased as: terabyte
weeks()
click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 78 def weeks self * 86400 * 7 end
Also aliased as: week