RubyGems Navigation menu

has_price 1.2.0

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.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 1.2.0 - May 21, 2012 (10 ko)
  2. 1.1.1 - January 18, 2010 (10 ko)
  3. 1.1.0 - December 02, 2009 (10 ko)
  4. 1.0.0 - December 02, 2009 (10 ko)

Dépendances de Development (2):

rr >= 0
shoulda >= 0

Propriétaires:

Auteurs:

  • Maxim Chernyak

Total de contrôle SHA 256:

42c3a3dfc1198adb643940529280b6726e3a4b05c1bae25a7619f2c6bc7d37b8

Total de téléchargements 18 345

Pour cette version 6 982

License:

aucune

Version de Ruby requise: None

Liens: