Module: CanvasConnect
- Defined in:
- lib/canvas_connect.rb,
lib/canvas_connect/version.rb,
lib/canvas_connect/meeting_archive.rb
Defined Under Namespace
Classes: ConnectionError, Engine, MeetingArchive, MeetingFolderError, MeetingNotFound
Constant Summary collapse
- VERSION =
'0.3.16'
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.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/canvas_connect.rb', line 50 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.
37 38 39 40 41 42 43 44 45 |
# File 'lib/canvas_connect.rb', line 37 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 |