class AuthorizeNet::ShippingAddress
Models a shipping address.
Public Instance Methods
to_hash()
click to toggle source
# File lib/authorize_net/addresses/shipping_address.rb, line 8 def to_hash hash = { :ship_to_first_name => @first_name, :ship_to_last_name => @last_name, :ship_to_company => @company, :ship_to_address => @street_address, :ship_to_city => @city, :ship_to_state => @state, :ship_to_zip => @zip, :ship_to_country => @country, :ship_to_phone => @phone, :ship_to_fax => @fax } hash.delete_if {|k, v| v.nil?} end