class Braintree::Transaction::CustomerDetails
Attributes
company[R]
email[R]
fax[R]
first_name[R]
id[R]
international_phone[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 16 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 20 def inspect attr_order = [:id, :first_name, :last_name, :email, :company, :website, :phone, :international_phone, :fax] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<#{formatted_attrs.join(", ")}>" end