RubyGems Navigation menu

has_price 1.0.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:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

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

Development Abhängigkeiten (2):

rr >= 0
shoulda >= 0

Besitzer:

Autoren:

  • Maxim Chernyak

SHA 256-Prüfsumme:

f9a3d62792730b51852c88995cd5c9511d9b7149ca29ce0b021a87da087da277

Downloads insgesamt 18.345

Für diese Version 3.754

Lizenzen:

k.A.

Erforderliche Ruby-Version: None

Links: