Sha256: 3c450f6bbfcf3ec621aaeee384958622a02e3a92dd4e971bcae6b0cd874f7c0b

Contents?: true

Size: 740 Bytes

Versions: 8

Compression:

Stored size: 740 Bytes

Contents

module Braintree
  class PaymentMethodNonceDetailsPayerInfo
    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

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.22.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.21.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.20.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.19.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.18.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.17.0 lib/braintree/payment_method_nonce_details_payer_info.rb
braintree-4.16.0 lib/braintree/payment_method_nonce_details_payer_info.rb