lib/moysklad/entities/sale_price.rb in moysklad-0.1.5 vs lib/moysklad/entities/sale_price.rb in moysklad-0.2.0
- old
+ new
@@ -6,7 +6,13 @@
tag 'price'
attribute :currencyUuid, String
attribute :priceTypeUuid, String
attribute :value, Float
+
+ def priceType universe
+ cache :priceType, universe do
+ universe.price_types.find priceTypeUuid
+ end
+ end
end
end