lib/meducation_sdk/configuration.rb in meducation_sdk-1.5.7 vs lib/meducation_sdk/configuration.rb in meducation_sdk-1.6.0

- old
+ new

@@ -4,22 +4,28 @@ class MeducationSDKConfigurationError < MeducationSDKError end class Configuration - SETTINGS = [ :logger ] + SETTINGS = [ + :logger, + :recommender_host, :recommender_port + ] attr_writer *SETTINGS def initialize self.logger = Filum.logger Loquor.config do |config| - config.endpoint = "http://www.meducation.net/system" + config.endpoint = "http://spi.meducation.net" config.substitute_values[true] = ":__true__" config.substitute_values[false] = ":__false__" config.retry_404s = true end + + self.recommender_host = "recommender.meducation.net" + self.recommender_port = 4567 end [:access_id, :secret_key, :endpoint, :cache].each do |setting| define_method "#{setting}=" do |val| Loquor.config.send("#{setting}=", val)