Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/em-ucengine/utils.rb

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day



26
27
28
# File 'lib/em-ucengine/utils.rb', line 26

def days
  return hours * 24
end

#hoursObject Also known as: hour



30
31
32
# File 'lib/em-ucengine/utils.rb', line 30

def hours
  return mins * 60
end

#minsObject Also known as: min



34
35
36
# File 'lib/em-ucengine/utils.rb', line 34

def mins
  return self * 60
end

#secsObject Also known as: sec



38
39
40
# File 'lib/em-ucengine/utils.rb', line 38

def secs
  return self
end