Consulta no site ReceitaWS - https://receitaws.com.br/
Add this line to your application's Gemfile:
gem 'receitaws'
And then execute:
$ bundle
Or install it yourself as:
$ gem install receitaws
consulta = Receitaws::Api.consulta('27865757000102')
consulta.to_h
gem build receitaws.gemspec
gem install ./
gem install ./receitaws-0.0.1.gem
irb
require 'receitaws'
consulta = Receitaws::Api.consulta('27865757000102')
consulta.to_h
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/receitaws.
The gem is available as open source under the terms of the MIT License.