RubyGems Navigation menu

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.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

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

Development 依赖 (2):

rr >= 0
shoulda >= 0

业主:

作者:

  • Maxim Chernyak

SHA 256 校验和:

2e08cfba945724c39529d95b913af51dea9846b3e28f0768c46fe62505638878

下载总量 18,345

这个版本 3,867

许可:

需要的 Ruby 版本:

链接: