Sha256: 831f6bdfe8d223161388e9b53d45592568003aa0734b61a6381599933c3ad45c
Contents?: true
Size: 298 Bytes
Versions: 34
Compression:
Stored size: 298 Bytes
Contents
module Piggybak class ShippingCalculator::FlatRate KEYS = ["rate"] def self.description "Flat Rate" end def self.available?(*args) true end def self.rate(method, object) method.metadata.detect { |m| m.key == "rate" }.value.to_f.to_c end end end
Version data entries
34 entries across 34 versions & 1 rubygems