Module: CanvasConnect
- Defined in:
- lib/canvas_connect.rb,
lib/canvas_connect/version.rb,
lib/canvas_connect/meeting_archive.rb
Defined Under Namespace
Classes: ConnectionError, MeetingArchive, MeetingFolderError, MeetingNotFound, Railtie
Constant Summary collapse
- VERSION =
'0.3.8'
Class Method Summary collapse
-
.client ⇒ Object
Return a cached Connect Service object to make requests with.
-
.config ⇒ Object
Public: Find the plugin configuration.
Class Method Details
.client ⇒ Object
Return a cached Connect Service object to make requests with.
Returns a AdobeConnect::Service.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/canvas_connect.rb', line 62 def self.client @clients ||= {} settings = self.config client = @clients[settings] unless client connect_settings = { :username => settings[:login], :password => settings[:password_dec], :domain => settings[:domain] } client = AdobeConnect::Service.new(connect_settings) client.log_in @clients[settings] = client end client end |
.config ⇒ Object
Public: Find the plugin configuration.
Returns a settings hash.
49 50 51 52 53 54 55 56 57 |
# File 'lib/canvas_connect.rb', line 49 def self.config settings = Canvas::Plugin.find('adobe_connect').settings || {} AdobeConnect::Config.declare do username settings[:login] password settings[:password_dec] domain settings[:domain] end settings end |