Class: AuthorizeNet::ShippingAddress
- Includes:
- Model
- Defined in:
- lib/authorize_net/addresses/shipping_address.rb
Overview
Models a shipping address.
Instance Attribute Summary
Attributes inherited from Address
#city, #company, #country, #customer_address_id, #fax, #first_name, #last_name, #phone, #state, #street_address, #zip
Instance Method Summary collapse
Methods included from Model
Instance Method Details
#to_hash ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |