module Ducts::Client::State

Constants

CLOSE
OPEN_CLOSED
OPEN_CLOSING
OPEN_CONNECTED
OPEN_CONNECTING

Public Class Methods

get_state_from_value(value) click to toggle source
# File lib/ducts/client.rb, line 85
def self.get_state_from_value(value)
  (constants.map{ |x| const_get(x) }.include? value)? value : nil
end