Ruby classes for doctag
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
doctag.gemspec

README.md

Doctag Ruby Lib

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

MIT License 2012-2013 Georg Leciejewski