class AuthorizeNet::Address
Models an address.
Attributes
city[RW]
company[RW]
country[RW]
customer_address_id[RW]
fax[RW]
first_name[RW]
last_name[RW]
phone[RW]
state[RW]
street_address[RW]
zip[RW]
Public Instance Methods
to_hash()
click to toggle source
# File lib/authorize_net/addresses/address.rb, line 10 def to_hash hash = { :first_name => @first_name, :last_name => @last_name, :company => @company, :address => @street_address, :city => @city, :state => @state, :zip => @zip, :country => @country, :phone => @phone, :fax => @fax, :customer_address_id => @customer_address_id } hash.delete_if {|k, v| v.nil?} end