lib/configuration.rb in materialist-3.4.0 vs lib/configuration.rb in materialist-3.5.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'routemaster/api_client' + module Materialist class << self def configuration @configuration ||= Configuration.new end @@ -12,14 +14,15 @@ yield(self.configuration) end end class Configuration - attr_accessor :topics, :sidekiq_options, :metrics_client, :notice_error + attr_accessor :topics, :sidekiq_options, :api_client, :metrics_client, :notice_error def initialize @topics = [] @sidekiq_options = {} + @api_client = Routemaster::APIClient.new(response_class: ::Routemaster::Responses::HateoasResponse) @metrics_client = NullMetricsClient @notice_error = nil end class NullMetricsClient