Module: BigbluebuttonRails
- Defined in:
- lib/bigbluebutton_rails.rb,
lib/bigbluebutton_rails/rails.rb,
lib/bigbluebutton_rails/utils.rb,
lib/bigbluebutton_rails/version.rb,
lib/bigbluebutton_rails/exceptions.rb,
lib/bigbluebutton_rails/dial_number.rb,
lib/bigbluebutton_rails/background_tasks.rb,
lib/bigbluebutton_rails/controller_methods.rb,
lib/generators/bigbluebutton_rails/views_generator.rb,
lib/bigbluebutton_rails/internal_controller_methods.rb,
lib/generators/bigbluebutton_rails/install_generator.rb
Defined Under Namespace
Modules: ControllerMethods, Generators, InternalControllerMethods Classes: BackgroundTasks, DialNumber, Engine, RoomAccessDenied, ServerRequired
Constant Summary collapse
- VERSION =
"2.1.0".freeze
- @@controllers =
{ :servers => 'bigbluebutton/servers', :rooms => 'bigbluebutton/rooms', :recordings => 'bigbluebutton/recordings', :playback_types => 'bigbluebutton/playback_types' }
- @@routing_scope =
'bigbluebutton'- @@metadata_room_id =
:'bbbrails-room-id'- @@metadata_user_id =
:'bbbrails-user-id'- @@metadata_user_name =
:'bbbrails-user-name'- @@metadata_invitation_url =
:'invitation-url'- @@metadata_invalid_keys =
[ , , , ]
- @@user_attr_name =
:'name'- @@user_attr_id =
:'id'- @@invitation_url_method =
:'invitation_url'- @@dynamic_metadata_method =
:'dynamic_metadata'- @@use_local_voice_bridges =
false
Class Method Summary collapse
-
.match_room_recording(data) ⇒ Object
Finds the BigbluebuttonRoom associated with the recording data in ‘data’, if any.
- .set_controllers(options) ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Default way to setup the gem.
-
.use_mobile_client?(browser) ⇒ Boolean
Returns whether the current client should use the mobile client or the desktop client.
-
.value_to_boolean(value) ⇒ Object
Just a wrapper around the Rails method to convert values to boolean.
Class Method Details
.match_room_recording(data) ⇒ Object
Finds the BigbluebuttonRoom associated with the recording data in ‘data’, if any. TODO: if not found, remove the association or keep the old one?
101 102 103 104 105 106 107 |
# File 'lib/bigbluebutton_rails.rb', line 101 def self.match_room_recording(data) if block_given? yield else .find_by_meetingid(data[:meetingid]) end end |
.set_controllers(options) ⇒ Object
109 110 111 112 113 |
# File 'lib/bigbluebutton_rails.rb', line 109 def self.set_controllers() unless .nil? @@controllers.merge!().slice!(:servers, :rooms, :recordings, :playback_types) end end |
.setup {|_self| ... } ⇒ Object
Default way to setup the gem.
116 117 118 |
# File 'lib/bigbluebutton_rails.rb', line 116 def self.setup yield self end |
.use_mobile_client?(browser) ⇒ Boolean
Returns whether the current client should use the mobile client or the desktop client.
7 8 9 |
# File 'lib/bigbluebutton_rails/utils.rb', line 7 def self.use_mobile_client?(browser) browser.mobile? || browser.tablet? end |
.value_to_boolean(value) ⇒ Object
Just a wrapper around the Rails method to convert values to boolean
12 13 14 |
# File 'lib/bigbluebutton_rails/utils.rb', line 12 def self.value_to_boolean(value) ActiveRecord::ConnectionAdapters::Column.value_to_boolean(value) end |