lib/meducation_sdk/configuration.rb in meducation_sdk-0.8.0 vs lib/meducation_sdk/configuration.rb in meducation_sdk-0.9.0

- old
+ new

@@ -9,12 +9,16 @@ SETTINGS = [ :logger ] attr_writer *SETTINGS def initialize - Filum.config.logfile = "./log/loquor.log" - Loquor.config.endpoint = "http://www.meducation.net/system" self.logger = Filum.logger + + Loquor.config do |config| + config.endpoint = "http://www.meducation.net/system" + config.substitute_values[true] = ":__true__" + config.substitute_values[false] = ":__false__" + end end [:access_id, :secret_key, :endpoint, :cache].each do |setting| define_method "#{setting}=" do |val| Loquor.config.send("#{setting}=", val)