lib/usps/api/endpoints/track_v2.rb in usps-ruby-client-0.1.3 vs lib/usps/api/endpoints/track_v2.rb in usps-ruby-client-0.2.0
- old
+ new
@@ -19,10 +19,10 @@
# * *:client_ip* (String)
# * *:source_id* (required, String)
# * *:track_id* (required, String)
# * *:destination_zip_code* (String)
# * *:mailing_date* (String)
-def track_v2(options = {})
+ def track_v2(options = {})
throw ArgumentError.new('Required arguments :track_field_request missing') if options[:track_field_request].nil?
throw ArgumentError.new('Required arguments :track_field_request, :revision missing') if options[:track_field_request][:revision].nil?
throw ArgumentError.new('Required arguments :track_field_request, :source_id missing') if options[:track_field_request][:source_id].nil?
throw ArgumentError.new('Required arguments :track_field_request, :track_id missing') if options[:track_field_request][:track_id].nil?