class Braintree::Transaction::CustomerDetails

Attributes

company[R]
email[R]
fax[R]
first_name[R]
id[R]
last_name[R]
phone[R]
website[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/braintree/transaction/customer_details.rb, line 15
def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Public Instance Methods

inspect() click to toggle source
# File lib/braintree/transaction/customer_details.rb, line 19
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