Module: CanvasWebex
- Defined in:
- lib/canvas_webex/meeting.rb,
lib/canvas_webex.rb,
lib/canvas_webex/service.rb,
lib/canvas_webex/version.rb
Overview
Copyright © 2012 Instructure, Inc.
This file is part of Canvas.
Canvas is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
Canvas is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Defined Under Namespace
Classes: ConnectionError, Meeting, Service
Constant Summary collapse
- VERSION =
"0.2"
Class Method Summary collapse
-
.client ⇒ Object
Return a cached Connect Service object to make requests with.
-
.config ⇒ Object
Public: Find the plugin configuration.
-
.register ⇒ Object
Public: Configure as a Canvas plugin.
Class Method Details
.client ⇒ Object
Return a cached Connect Service object to make requests with.
Returns a CiscoWwebex::Service.
54 55 56 |
# File 'lib/canvas_webex.rb', line 54 def self.client @client ||= Service.new(*self.config.values_at(:webex_id, :password_dec, :site_id, :site_name, :partner_id)) end |
.config ⇒ Object
Public: Find the plugin configuration.
Returns a settings hash.
47 48 49 |
# File 'lib/canvas_webex.rb', line 47 def self.config Canvas::Plugin.find('cisco_webex').settings || {} end |
.register ⇒ Object
Public: Configure as a Canvas plugin
Returns nothing.
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/canvas_webex.rb', line 31 def self.register Rails.configuration.to_prepare do view_path = File.join(File.dirname(__FILE__), '..', 'app', 'views') unless ApplicationController.view_paths.include?(view_path) ApplicationController.view_paths.unshift(view_path) end require_dependency "models/cisco_webex_conference" Canvas::Plugins::CiscoWebex.new end end |