Sha256: dd3cbd1cab91758e4305d699c2e4953788478ba15b9929e9460fdd7c29f77a23

Contents?: true

Size: 750 Bytes

Versions: 16

Compression:

Stored size: 750 Bytes

Contents

module Braintree
  class PaymentMethodNonceDetailsPayerInfo # :nodoc:
    include BaseModule

    attr_reader :billing_agreement_id
    attr_reader :country_code
    attr_reader :email
    attr_reader :first_name
    attr_reader :last_name
    attr_reader :payer_id

    def initialize(attributes)
      set_instance_variables_from_hash attributes unless attributes.nil?
    end

    def inspect
      attr_order = [
        :billing_agreement_id,
        :country_code,
        :email,
        :first_name,
        :last_name,
        :payer_id,
      ]

      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<PaymentMethodNonceDetailsPayerInfo #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.14.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.13.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.12.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.11.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.10.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.9.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.8.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.7.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.6.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.5.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.4.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.3.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.2.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.1.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.0.0 lib/braintree/payment_method_nonce_details_payer_info.rb