Sha256: 4d002d1fe24aedf451fbb0bf2c80b68f11f9d2d19333bf0423fef9d05b2de283
Contents?: true
Size: 487 Bytes
Versions: 8
Compression:
Stored size: 487 Bytes
Contents
require "takuhai_status/version" require "takuhai_status/japanpost" require "takuhai_status/kuronekoyamato" require "takuhai_status/sagawa" require "takuhai_status/tmg_cargo" require "takuhai_status/ups" module TakuhaiStatus class NotFound < StandardError; end class NotMyKey < StandardError; end def self.scan(key) [JapanPost, KuronekoYamato, Sagawa, TMGCargo, UPS].each do |service| begin return service.new(key) rescue NotMyKey end end raise NotFound end end
Version data entries
8 entries across 8 versions & 1 rubygems