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'
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.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/canvas_connect.rb', line 66 def self.client unless @client settings = self.config connect_settings = { :username => settings[:login], :password => settings[:password_dec], :domain => settings[:domain] } @client = AdobeConnect::Service.new(connect_settings) @client.log_in end @client end |
.config ⇒ Object
Public: Find the plugin configuration.
Returns a settings hash.
53 54 55 56 57 58 59 60 61 |
# File 'lib/canvas_connect.rb', line 53 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 |