Project

contaazul

0.0
No commit activity in last 3 years
No release in over 3 years
A tiny non-official wrapper for ContaAzul's API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

contaazul

Dependency Status Build Status

A tiny non-official wrapper for ContaAzul's API.

Installation

Add this line to your application's Gemfile:

gem 'contaazul'

And then execute:

$ bundle

Or install it yourself as:

$ gem install contaazul

Usage

Clients

$ Contaazul.clients # Get all
$ Contaazul.client(id) # Get one
$ Contaazul.create_client(options) # Create a client with parameters in options hash
$ Contaazul.edit_client(id, options) # Update client passed in ID with params in options hash
$ Contaazul.delete_client(id) # Remote client passed in ID

Statements

$ Contaazul.statements # Get all
$ Contaazul.statement(id) # Get one
$ Contaazul.create_statement(options) # Create a statement with parameters in options hash
$ Contaazul.edit_statementid, options) # Update statement passed in ID with params in options hash
$ Contaazul.delete_statement(id) # Remote statement passed in ID

Cities

$ Contaazul.cities # Get all
$ Contaazul.city(id) # Get one

More info about integration

See official docs.

JSON dependency

Since JSON is included in 1.9 now, we no longer include it as a hard dependency. Please require it explicitly if you're running Ruby 1.8

gem 'json', '~> 1.7'

Contributing

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

Copyright

DO WHATEVER YOU WANT TO! This project is basically a fork of octokit.rb See LICENSE for details.