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

1,519 total downloads 541 for this version
Owners

1e1640f82b3167301a893b6873347de3

Bundler
gem "has_price", "~> 1.1.1"
Versions
  1. 1.1.1 January 18, 2010
Development Dependencies
  1. rr >= 0
  2. shoulda >= 0