Class: FriendlyShipping::Services::Usps::SerializeCityStateLookupRequest
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::Usps::SerializeCityStateLookupRequest
- Defined in:
- lib/friendly_shipping/services/usps/serialize_city_state_lookup_request.rb
Class Method Summary collapse
Class Method Details
.call(location:, login:) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/friendly_shipping/services/usps/serialize_city_state_lookup_request.rb', line 7 def self.call(location:, login:) xml_builder = Nokogiri::XML::Builder.new do |xml| xml.CityStateLookupRequest(USERID: login) do xml.ZipCode do xml.Zip5 location.zip end end end xml_builder.to_xml end |