Sha256: 7a4161403ce493cb6912a977a4bc265788a99788c913a414c5538f955dd639aa
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
module OpenTok # * +SUBSCRIBER+ Can only subscribe # * +PUBLISHER+ Can publish, subscribe, and signal # * +MODERATOR+ Can do the above along with forceDisconnect and forceUnpublish module RoleConstants SUBSCRIBER = "subscriber" # Can only subscribe PUBLISHER = "publisher" # Can publish, subscribe, and signal MODERATOR = "moderator" # Can do the above along with forceDisconnect and forceUnpublish class << self def is_valid?(role) role == SUBSCRIBER || role == PUBLISHER || role == MODERATOR end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opentok-0.1.3 | lib/open_tok/role_constants.rb |
opentok-0.1.2 | lib/open_tok/role_constants.rb |
opentok-0.1.1 | lib/open_tok/role_constants.rb |
opentok-0.1.0 | lib/open_tok/role_constants.rb |