Class: SimpleShipping::Fedex::PartyBuilder
- Inherits:
-
Abstract::Builder
- Object
- Abstract::Builder
- SimpleShipping::Fedex::PartyBuilder
- Defined in:
- lib/simple_shipping/fedex/party_builder.rb
Overview
Knows how to convert Party model to SOAP element for FedEx.
Instance Method Summary collapse
-
#build ⇒ Object
Build a SOAP party element as a hash for Savon.
Methods inherited from Abstract::Builder
build, set_default_opts, #validate
Instance Method Details
#build ⇒ Object
Build a SOAP party element as a hash for Savon.
5 6 7 8 9 |
# File 'lib/simple_shipping/fedex/party_builder.rb', line 5 def build {'Contact' => build_contact, 'Address' => build_address, :order! => ['Contact', 'Address']} end |