Sha256: 5ce058a3d2695556552959ba575480ffc24ee59cbe7ffcf85d62b536a5678aa8

Contents?: true

Size: 716 Bytes

Versions: 46

Compression:

Stored size: 716 Bytes

Contents

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

      attr_reader :company
      attr_reader :email
      attr_reader :fax
      attr_reader :first_name
      attr_reader :id
      attr_reader :last_name
      attr_reader :phone
      attr_reader :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

46 entries across 46 versions & 1 rubygems

Version Path
braintree-3.0.1 lib/braintree/transaction/customer_details.rb
braintree-2.104.1 lib/braintree/transaction/customer_details.rb
braintree-2.104.0 lib/braintree/transaction/customer_details.rb
braintree-2.103.0 lib/braintree/transaction/customer_details.rb
braintree-2.102.0 lib/braintree/transaction/customer_details.rb
braintree-2.101.0 lib/braintree/transaction/customer_details.rb
braintree-2.100.0 lib/braintree/transaction/customer_details.rb
braintree-2.99.0 lib/braintree/transaction/customer_details.rb
braintree-2.98.0 lib/braintree/transaction/customer_details.rb
braintree-2.97.0 lib/braintree/transaction/customer_details.rb
braintree-2.96.0 lib/braintree/transaction/customer_details.rb
braintree-2.95.0 lib/braintree/transaction/customer_details.rb
braintree-2.94.0 lib/braintree/transaction/customer_details.rb
braintree-2.93.0 lib/braintree/transaction/customer_details.rb
braintree-2.92.0 lib/braintree/transaction/customer_details.rb
braintree-2.91.0 lib/braintree/transaction/customer_details.rb
braintree-2.90.0 lib/braintree/transaction/customer_details.rb
braintree-2.89.0 lib/braintree/transaction/customer_details.rb
braintree-2.88.0 lib/braintree/transaction/customer_details.rb
braintree-2.87.0 lib/braintree/transaction/customer_details.rb