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/configuration.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, Configuration, DialNumber, Engine, RoomAccessDenied, ServerRequired
Constant Summary collapse
- VERSION =
"2.2.0".freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .reset ⇒ Object
-
.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 Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
20 21 22 |
# File 'lib/bigbluebutton_rails.rb', line 20 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
31 32 33 |
# File 'lib/bigbluebutton_rails.rb', line 31 def self.configure yield(configuration) end |
.reset ⇒ Object
27 28 29 |
# File 'lib/bigbluebutton_rails.rb', line 27 def self.reset @configuration = Configuration.new 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 |