lib/kosher/shipping.rb in kosher-0.15.0 vs lib/kosher/shipping.rb in kosher-0.16.0

- old
+ new

@@ -1,15 +1,10 @@ module Kosher class Shipping < Structure - include Filter - include Price + key :cents, Integer + key :currency - key :available, Boolean - - validates_presence_of :available - - def available? - validate! - available + def cost + Money.new(cents, currency) end end end