Class: Exp
- Inherits:
-
Object
- Object
- Exp
- Defined in:
- models.rb
Class Method Summary (collapse)
-
+ (Array) names
List of internal exp names.
-
+ (int) rank(exp_string)
Exp rank.
-
+ (int) state(exp_string)
Exp state.
Class Method Details
+ (Array) names
List of internal exp names
148 149 150 151 |
# File 'models.rb', line 148 def self.names() $_api_socket.puts "GET EXP_NAMES\n" $_api_socket.gets('\0').chomp('\0').to_s.split("\n") end |
+ (int) rank(exp_string)
Exp rank
124 125 126 127 |
# File 'models.rb', line 124 def self.rank(exp_string) $_api_socket.puts "GET EXP_RANK?#{ERB::Util.url_encode(exp_string.to_s.downcase)}\n" $_api_socket.gets('\0').chomp('\0').to_i end |
+ (int) state(exp_string)
Exp state
137 138 139 140 |
# File 'models.rb', line 137 def self.state(exp_string) $_api_socket.puts "GET EXP_STATE?#{ERB::Util.url_encode(exp_string.to_s.downcase)}\n" $_api_socket.gets('\0').chomp('\0').to_i end |