Skip to content

Repository files navigation

PostmonRuby Build Status

postmon_ruby permite consultar cep's através da api do postmon

Installation

Add this line to your application's Gemfile:

gem 'postmon_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install postmon_ruby

Usage

####Consultar CEP:

require'postmon_ruby'resultado=PostmonRuby::Client.search:cep,"01330000"putsresultado.logradouroputsresultado.bairroputsresultado.cidadeputsresultado.estado

####Consultar informações de uma cidade:

require'postmon_ruby'resultado=PostmonRuby::Client.search:cidade,"SP","Araraquara"putsresultado.area_km2putsresultado.codigo_ibge

####Consultar informações de um estado:

require'postmon_ruby'resultado=PostmonRuby::Client.search:estado,"SP"putsresultado.area_km2putsresultado.codigo_ibgeputsresultado.nome

###Para consultar pelo terminal A comand-line-interface para consultar ceps, informações do IBGE e rastreio de pacotes diretamente do terminal foi separada em outro projeto. PostmonCLI(https://github.com/PostmonAPI/postmon-cli)

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

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages