lib/braintree/credit_card_verification.rb in braintree-4.15.0 vs lib/braintree/credit_card_verification.rb in braintree-4.16.0
- old
+ new
@@ -46,20 +46,20 @@
attr_reader :processor_response_type
attr_reader :risk_data
attr_reader :three_d_secure_info
attr_reader :status
- def initialize(attributes) # :nodoc:
+ def initialize(attributes)
set_instance_variables_from_hash(attributes)
@amount = Util.to_big_decimal(amount)
@risk_data = RiskData.new(attributes[:risk_data]) if attributes[:risk_data]
@three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info]
end
- def inspect # :nodoc:
+ def inspect
attr_order = [
:status,
:processor_response_code,
:processor_response_text,
:amount,
@@ -89,10 +89,10 @@
class << self
protected :new
end
- def self._new(*args) # :nodoc:
+ def self._new(*args)
self.new(*args)
end
def self.find(*args)
Configuration.gateway.verification.find(*args)