lib/braintree/gateway.rb in braintree-2.97.0 vs lib/braintree/gateway.rb in braintree-2.98.0
- old
+ new
@@ -1,16 +1,18 @@
module Braintree
class Gateway
- attr_reader :config
+ attr_reader :config, :graphql_client
def initialize(config)
if config.is_a?(Hash)
@config = Configuration.new config
elsif config.is_a?(Braintree::Configuration)
@config = config
else
raise ArgumentError, "config is an invalid type"
end
+
+ @graphql_client = GraphQLClient.new(@config)
end
def add_on
AddOnGateway.new(self)
end