Sha256: 14ec8a1d98badad0dabec848a9c2be42b32fd3b56e17674aa4a58cfd6254abcc

Contents?: true

Size: 597 Bytes

Versions: 105

Compression:

Stored size: 597 Bytes

Contents

module Braintree
  class Transaction
    class CustomerDetails # :nodoc:
      include BaseModule

      attr_reader :company, :email, :fax, :first_name, :id, :last_name, :phone, :website

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

      def inspect
        attr_order = [:id, :first_name, :last_name, :email, :company, :website, :phone, :fax]
        formatted_attrs = attr_order.map do |attr|
          "#{attr}: #{send(attr).inspect}"
        end
        "#<#{formatted_attrs.join(", ")}>"
      end
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
braintree-2.27.0 lib/braintree/transaction/customer_details.rb
braintree-2.26.0 lib/braintree/transaction/customer_details.rb
braintree-2.25.0 lib/braintree/transaction/customer_details.rb
braintree-2.24.0 lib/braintree/transaction/customer_details.rb
braintree-2.23.0 lib/braintree/transaction/customer_details.rb
braintree-2.22.0 lib/braintree/transaction/customer_details.rb
braintree-2.21.0 lib/braintree/transaction/customer_details.rb
braintree-2.20.0 lib/braintree/transaction/customer_details.rb
braintree-2.19.0 lib/braintree/transaction/customer_details.rb
braintree-2.18.0 lib/braintree/transaction/customer_details.rb
braintree-2.17.0 lib/braintree/transaction/customer_details.rb
braintree-2.16.0 lib/braintree/transaction/customer_details.rb
braintree-2.15.0 lib/braintree/transaction/customer_details.rb
braintree-2.14.0 lib/braintree/transaction/customer_details.rb
braintree-2.13.4 lib/braintree/transaction/customer_details.rb
braintree-2.13.3 lib/braintree/transaction/customer_details.rb
braintree-2.13.2 lib/braintree/transaction/customer_details.rb
braintree-2.13.1 lib/braintree/transaction/customer_details.rb
braintree-2.10.3 lib/braintree/transaction/customer_details.rb
braintree-2.13.0 lib/braintree/transaction/customer_details.rb