Sha256: 09134532ea04b22958a8fb44517e0847d9c884906f0716814e748944228c1afc
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
module Seko class Tracking attr_accessor :carrier DPD = "https://tracking.dpd.de/cgi-bin/delistrack?pknr=:tracking_number&typ=32&lang=en" def initialize(carrier, tracking_number) @carrier = carrier @tracking_number = tracking_number end def carrier_destination self.class.const_get(carrier.upcase) end def url carrier_destination.gsub(':tracking_number', @tracking_number) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seko-0.0.1 | lib/seko/tracking.rb |