Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fadendaten/bliss_hash_items


https://github.com/fadendaten/bliss_hash_items

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# BlissHashItems

This module was extracted from our internally used logistics system. Extraction WIP.
Tests not yet extracted. Avoid usage or use with caution.

## Installation

Add this line to your application's Gemfile:

gem 'bliss_hash_items'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bliss_hash_items

## Usage

```ruby
class YourReceiptClass < ActiveRecord::Base
include BlissHashItems

has_many :line_items
# ...
end

receipt = YourReceiptClass.new
receipt.respond_to? :line_items_to_hash # => true
```