class Braintree::PaymentMethodNonce

Attributes

authentication_insight[R]
bin_data[R]
default[R]
details[R]
nonce[R]
three_d_secure_info[R]
type[R]

Public Class Methods

_new(gateway, attributes) click to toggle source
# File lib/braintree/payment_method_nonce.rb, line 45
def self._new(gateway, attributes)
  new(gateway, attributes)
end
create(*args) click to toggle source
# File lib/braintree/payment_method_nonce.rb, line 5
def self.create(*args)
  Configuration.gateway.payment_method_nonce.create(*args)
end
create!(*args) click to toggle source
# File lib/braintree/payment_method_nonce.rb, line 9
def self.create!(*args)
  Configuration.gateway.payment_method_nonce.create!(*args)
end
find(*args) click to toggle 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

new(gateway, attributes) click to toggle 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

Public Instance Methods

default?() click to toggle source
# File lib/braintree/payment_method_nonce.rb, line 33
def default?
  @default
end
to_s() click to toggle source
# File lib/braintree/payment_method_nonce.rb, line 37
def to_s
  nonce
end