RubyGems.org

has_price

1.1.1

A convenient DSL for defining complex price reader/serializer in a class and organizing a price breakdown. Price can be declared with items and groups which depend on other attributes. Price is a very simple subclass of Hash. This provides for easy serialization and flexibility in case of implementation changes. This way you can conveniently store the whole price breakdown in your serialized receipts. It also provides magic methods for convenient access, but can be fully treated as a regular Hash with some sprinkles on top.

installgem install has_price
Authors

Maxim Chernyak

175 total downloads 48 for this version
Versions
  1. 1.1.1 January 18, 2010
  2. 1.1.0 December 2, 2009
  3. 1.0.0 December 2, 2009
Development Dependencies
  1. rr >= 0
  2. shoulda >= 0