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

Version Path
takuhai_status-1.3.2 lib/takuhai_status.rb
takuhai_status-1.3.1 lib/takuhai_status.rb
takuhai_status-1.3.0 lib/takuhai_status.rb
takuhai_status-1.2.0 lib/takuhai_status.rb
takuhai_status-1.1.3 lib/takuhai_status.rb
takuhai_status-1.1.2 lib/takuhai_status.rb
takuhai_status-1.1.1 lib/takuhai_status.rb
takuhai_status-1.1.0 lib/takuhai_status.rb