Doctag Ruby Lib
Handle Doctag documents.
This is work in progress ...
Installation
Add this line to your application's Gemfile:
gem 'doctag'
Or install with:
$ gem install doctag
Usage
Initialize class structure
require 'doctag'
DocTag.init
Play with docs
doc = DocTag::Document.new doctype: 'invoice'
doc.number = '123'
doc.valid?
Play with related classes
tax = DocTag::Tax.new
tax.name = 'MwSt'
tax.rate = 19
tax.amount = 10
doc.tax = tax
TODO .. add 5 lines of ruby :-)
doc = DocTag::Document.from_json(json_string)
doc.to_json
doc = Document.new {params-hash}
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
MIT License 2012-2013 Georg Leciejewski