lib/braintree/configuration.rb in braintree-2.64.0 vs lib/braintree/configuration.rb in braintree-2.65.0
- old
+ new
@@ -8,29 +8,42 @@
:public_key,
:private_key,
:client_id,
:client_secret,
:access_token,
- :environment,
+ :environment
]
+ NON_REQUIRED_READABLE_ATTRIBUTES = [
+ :proxy_address,
+ :proxy_port,
+ :proxy_user,
+ :proxy_pass
+ ]
+
WRITABLE_ATTRIBUTES = [
:custom_user_agent,
:endpoint,
:http_open_timeout,
:http_read_timeout,
:logger,
:merchant_id,
:public_key,
:private_key,
:environment,
+ :proxy_address,
+ :proxy_port,
+ :proxy_user,
+ :proxy_pass
]
class << self
attr_writer *WRITABLE_ATTRIBUTES
+ attr_reader *NON_REQUIRED_READABLE_ATTRIBUTES
end
attr_reader *READABLE_ATTRIBUTES
+ attr_reader *NON_REQUIRED_READABLE_ATTRIBUTES
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}")
@@ -62,10 +75,14 @@
:http_open_timeout => http_open_timeout,
:http_read_timeout => http_read_timeout,
:logger => logger,
:merchant_id => merchant_id,
:private_key => private_key,
- :public_key => public_key
+ :public_key => public_key,
+ :proxy_address => proxy_address,
+ :proxy_port => proxy_port,
+ :proxy_user => proxy_user,
+ :proxy_pass => proxy_pass
)
end
def self.http_open_timeout
@http_open_timeout ||= 60