lib/braintree/configuration.rb in braintree-2.5.1 vs lib/braintree/configuration.rb in braintree-2.5.2

- old
+ new

@@ -4,11 +4,11 @@ API_VERSION = "2" # :nodoc: class << self attr_writer :custom_user_agent, :logger, :merchant_id, :public_key, :private_key end - attr_reader :logger, :merchant_id, :public_key, :private_key + attr_reader :merchant_id, :public_key, :private_key def self.expectant_reader(*attributes) # :nodoc: attributes.each do |attribute| (class << self; self; end).send(:define_method, attribute) do attribute_value = instance_variable_get("@#{attribute}") @@ -73,9 +73,13 @@ end end def http # :nodoc: Http.new(self) + end + + def logger + @logger ||= self.class._default_logger end def port # :nodoc: case @environment when :development