Sha256: 73aff0ead6928e86f390215a84051e94ea47606e8eaf9a18c98f8dc13b6a249b

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

# Doctag Ruby Lib

[![Build Status](https://travis-ci.org/docTag/doctag_rb.png?branch=master)](https://travis-ci.org/docTag/doctag_rb)

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doctag-0.0.3 README.md