class Braintree::PaymentMethodNonce
Attributes
Public Class Methods
Source
# File lib/braintree/payment_method_nonce.rb, line 45 def self._new(gateway, attributes) new(gateway, attributes) end
Source
# File lib/braintree/payment_method_nonce.rb, line 5 def self.create(*args) Configuration.gateway.payment_method_nonce.create(*args) end
Source
# File lib/braintree/payment_method_nonce.rb, line 9 def self.create!(*args) Configuration.gateway.payment_method_nonce.create!(*args) end
Source
# File lib/braintree/payment_method_nonce.rb, line 13 def self.find(*args) Configuration.gateway.payment_method_nonce.find(*args) end
Protected Class Methods
Source
# File lib/braintree/payment_method_nonce.rb, line 25 def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @details = PaymentMethodNonceDetails.new(attributes[:details]) if attributes[:details] @three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info] @bin_data = BinData.new(attributes[:bin_data]) if attributes[:bin_data] end