lib/lita/adapters/glip.rb in lita-glip-0.1.0 vs lib/lita/adapters/glip.rb in lita-glip-0.2.0
- old
+ new
@@ -12,13 +12,21 @@
# Required attributes
config :app_key, type: String, required: true
config :app_secret, type: String, required: true
config :server_url, type: String, default: 'platform.devtest.ringcentral.com'
- config :username, type: String, required: true
+ config :username, type: String
config :extension, type: String
- config :password, type: String, required: true
+ config :password, type: String
config :token, type: String
+
+ def initialize(robot)
+ @robot = robot
+ end
+
+ def log
+ Lita.logger
+ end
def initialize(robot)
super
@connector = Connector.new(
robot,