class Braintree::PaymentMethodNonceDetails
Attributes
bin[R]
card_type[R]
expiration_month[R]
expiration_year[R]
is_network_tokenized[R]
is_network_tokenized?[R]
last_two[R]
payer_info[R]
sepa_direct_debit_account_nonce_details[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/braintree/payment_method_nonce_details.rb, line 16 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? @payer_info = PaymentMethodNonceDetailsPayerInfo.new(attributes[:payer_info]) if attributes[:payer_info] @sepa_direct_debit_account_nonce_details = ::Braintree::SepaDirectDebitAccountNonceDetails.new(attributes) end
Public Instance Methods
inspect()
click to toggle source
# File lib/braintree/payment_method_nonce_details.rb, line 22 def inspect attr_order = [ :bin, :card_type, :expiration_month, :expiration_year, :is_network_tokenized, :last_two, :payer_info, :sepa_direct_debit_account_nonce_details, ] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<PaymentMethodNonceDetails #{formatted_attrs.join(", ")}>" end