lib/usps/api/endpoints/pts_rre.rb in usps-ruby-client-0.1.3 vs lib/usps/api/endpoints/pts_rre.rb in usps-ruby-client-0.2.0
- old
+ new
@@ -19,10 +19,10 @@
# * *:email1* (required, String)
# * *:email2* (String)
# * *:email3* (String)
# * *:table_code* (required, String)
# * *:cust_reg_id* (String)
-def pts_rre(options = {})
+ def pts_rre(options = {})
throw ArgumentError.new('Required arguments :pts_rre_request missing') if options[:pts_rre_request].nil?
throw ArgumentError.new('Required arguments :pts_rre_request, :track_id missing') if options[:pts_rre_request][:track_id].nil?
throw ArgumentError.new('Required arguments :pts_rre_request, :mp_suffix missing') if options[:pts_rre_request][:mp_suffix].nil?
throw ArgumentError.new('Required arguments :pts_rre_request, :mp_date missing') if options[:pts_rre_request][:mp_date].nil?
throw ArgumentError.new('Required arguments :pts_rre_request, :first_name missing') if options[:pts_rre_request][:first_name].nil?