lib/usps/api/endpoints/verify.rb in usps-ruby-client-0.1.3 vs lib/usps/api/endpoints/verify.rb in usps-ruby-client-0.2.0

- old
+ new

@@ -16,10 +16,10 @@ # * *:city* (String) — City name of the destination address. # * *:state* (String) — Two-character state code of the destination address. # * *:urbanization* (String) — Urbanization. For Puerto Rico addresses only. # * *:zip5* (String) — Destination 5-digit ZIP Code. Numeric values (0-9) only. If International, all zeroes. # * *:zip4* (String) — Destination ZIP+4 Numeric values (0-9) only. If International, all zeroes. Default to spaces if not available. -def verify(options = {}) + def verify(options = {}) throw ArgumentError.new('Required arguments :address_validate_request missing') if options[:address_validate_request].nil? throw ArgumentError.new('Required arguments :address_validate_request, :revision missing') if options[:address_validate_request][:revision].nil? throw ArgumentError.new('Required arguments :address_validate_request, :address missing') if options[:address_validate_request][:address].nil? throw ArgumentError.new('Required arguments :address_validate_request, :address, :address2 missing') if options[:address_validate_request][:address][:address2].nil?