Class: SimpleShipping::Fedex::PartyBuilder

Inherits:
Abstract::Builder show all
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

Methods inherited from Abstract::Builder

build, set_default_opts, #validate

Instance Method Details

#buildObject

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