class AuthorizeNet::Customer

Models a customer.

Attributes

address[RW]
description[RW]
email[RW]
fax[RW]
id[RW]
ip[RW]
phone[RW]

Public Instance Methods

to_hash() click to toggle source
# File lib/authorize_net/customer.rb, line 10
def to_hash
  hash = {
    :phone => @phone,
    :fax => @fax,
    :email => @email,
    :cust_id => @id,
    :customer_ip => @ip,
    :description => @description,
    :customer_profile_id => @customer_profile_id
  }
  hash.delete_if {|k, v| v.nil?}
  hash.merge!(@address.to_hash) unless @address.nil?
  hash
end