Class: Rt

Inherits:
Object
  • Object
show all
Defined in:
models.rb

Class Method Summary (collapse)

Class Method Details

+ (int) value

Round time

Examples:

Using round time in script.

echo Rt::value
=> 5

Returns:

  • (int)

    roundtime value



11
12
13
14
# File 'models.rb', line 11

def self.value
  $_api_socket.puts "GET RT\n"
  $_api_socket.gets('\0').chomp('\0').to_i
end