Sha256: 5a7119bbc2790d0ddbd5f6f5359d5efa463da16efd4855a178ac653d1e760f1f
Contents?: true
Size: 224 Bytes
Versions: 3
Compression:
Stored size: 224 Bytes
Contents
module Carousel class Shipping SHIPPING_MAP = { "next-day" => "ND", "express" => "EXPRESS", "standard" => "ECONOMY" } def self.map(code) SHIPPING_MAP[code] || code end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
carousel-ruby-api-0.0.3 | lib/carousel/shipping.rb |
carousel-ruby-api-0.0.2 | lib/carousel/shipping.rb |
carousel-ruby-api-0.0.1 | lib/carousel/shipping.rb |