Sha256: f81acb65fc1bcb62dcd528bf24db27f4c193d69455bc5ec298c0adf3bfa189ce

Contents?: true

Size: 1.96 KB

Versions: 3

Compression:

Stored size: 1.96 KB

Contents

# Ares

[![Inline docs](http://inch-ci.org/github/ucetnictvi-on-line/ares.rb.svg?branch=master)](http://inch-ci.org/github/ucetnictvi-on-line/ares.rb)
[![Gem Version](https://badge.fury.io/rb/ares.rb.png)](http://badge.fury.io/rb/ares.rb)
[![Build Status](https://travis-ci.org/ucetnictvi-on-line/ares.rb.png?branch=master)](https://travis-ci.org/ucetnictvi-on-line/ares.rb)
[![Dependency Status](https://gemnasium.com/ucetnictvi-on-line/ares.rb.svg)](https://gemnasium.com/ucetnictvi-on-line/ares.rb)
[![Code Climate](https://codeclimate.com/github/ucetnictvi-on-line/ares.rb/badges/gpa.svg)](https://codeclimate.com/github/ucetnictvi-on-line/ares.rb)
[![Test Coverage](https://codeclimate.com/github/ucetnictvi-on-line/ares.rb/badges/coverage.svg)](https://codeclimate.com/github/ucetnictvi-on-line/ares.rb/coverage)

Ruby client for Czech Registers of Economic Subjects - [ARES](https://cs.wikipedia.org/wiki/Administrativn%C3%AD_registr_ekonomick%C3%BDch_subjekt%C5%AF)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'ares.rb'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ares.rb

## Usage

```ruby
record = Ares.standard(ico: '27169278')
record.business_name     # => "Účetnictví on-line, s.r.o."
record.address.to_s      # => "Pekařská 14/628, 15500 Praha-Jinonice, okres: Hlavní město Praha"
record.address.street           # => "Pekařská"
record.address.sequence_number  # => "14"
record.address.building_number  # => "628"
record.address.postcode         # => "15500"
record.address.town             # => "Praha"
record.address.residential_area # => "Jinonice"
record.address.district         # => "Hlavní město Praha"
```

## Contributing

1. Fork it ( https://github.com/ucetnictvi-on-line/ares.rb/fork )
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 a new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ares.rb-0.4.0 README.md
ares.rb-0.3.2 README.md
ares.rb-0.3.1 README.md