Sha256: a085535aae765bca1fbfe496f8de1a429328a1c668edcad709246b5dc216a780
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
# # Copyright (C) 2013 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 <http://www.gnu.org/licenses/>. # module CanvasWebex class ConnectionError < StandardError; end class Engine < Rails::Engine config.paths['lib'].eager_load! config.to_prepare do Canvas::Plugins::CiscoWebex.new end end # Public: Find the plugin configuration. # # Returns a settings hash. def self.config Canvas::Plugin.find('cisco_webex').settings || {} end # Return a cached Connect Service object to make requests with. # # Returns a CiscoWwebex::Service. def self.client Service.new(*self.config.values_at(:webex_service, :webex_id, :password_dec, :site_id, :site_name, :partner_id, :meeting_password_dec)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas_webex-0.18.2 | lib/canvas_webex.rb |
canvas_webex-0.18.1 | lib/canvas_webex.rb |