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

- old
+ new

@@ -24,10 +24,10 @@ # * *:first_name* (String) # * *:last_name* (String) # * *:email1* (required, String) # * *:email2* (String) # * *:email3* (String) -def pts_email(options = {}) + def pts_email(options = {}) throw ArgumentError.new('Required arguments :pts_email_request missing') if options[:pts_email_request].nil? throw ArgumentError.new('Required arguments :pts_email_request, :track_id missing') if options[:pts_email_request][:track_id].nil? throw ArgumentError.new('Required arguments :pts_email_request, :mp_suffix missing') if options[:pts_email_request][:mp_suffix].nil? throw ArgumentError.new('Required arguments :pts_email_request, :mp_date missing') if options[:pts_email_request][:mp_date].nil? throw ArgumentError.new('Required arguments :pts_email_request, :email1 missing') if options[:pts_email_request][:email1].nil?