Class: Rossoc::Ir::Rsleep

Inherits:
Object
  • Object
show all
Defined in:
lib/rossoc/ir.rb

Overview

RSLEEP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(second) ⇒ Rsleep

Returns a new instance of Rsleep.



62
63
64
# File 'lib/rossoc/ir.rb', line 62

def initialize(second)
  @second = second
end

Instance Attribute Details

#secondObject (readonly)

Returns the value of attribute second.



70
71
72
# File 'lib/rossoc/ir.rb', line 70

def second
  @second
end

Instance Method Details

#millisecondObject



72
73
74
# File 'lib/rossoc/ir.rb', line 72

def millisecond
  (@second * 1000).to_i
end

#positive?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/rossoc/ir.rb', line 66

def positive?
  @second.positive?
end