class Braintree::PaymentMethodNonceDetails
Attributes
Public Class Methods
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
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