module PocztaPolska
Constants
- DateRangeError
- Error
- ManyPackagesForbiddenError
- TooManyPackagesError
- UnknownPackageError
- VERSION
- WrongPackageError
Public Class Methods
tracker(username = nil, password = nil)
click to toggle source
Creates a Tracker
instance. Authentication is optional, it will allow you to check multiple packages in a single request. @param username [String] @param password [String] @return [Tracker] a Tracker
instance
# File lib/poczta_polska.rb, line 15 def self.tracker(username = nil, password = nil) if username.nil? && password.nil? Tracker.new('https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie?wsdl', 'sledzeniepp', 'PPSA') else Tracker.new('https://ws.poczta-polska.pl/Sledzenie/services/Sledzenie?wsdl', username, password) end end