postmon_ruby 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PostmonRuby
2
2
 
3
- TODO: Write a gem description
3
+ postmon_ruby permite consultar cep's através da api do postmon
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,14 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ ```ruby
22
+ require 'postmon_ruby'
23
+ resultado = PostmonRuby.consultar_cep "01330000"
24
+ puts resultado.logradouro
25
+ puts resultado.bairro
26
+ puts resultado.cidade
27
+ puts resultado.estado
28
+ ```
22
29
 
23
30
  ## Contributing
24
31
 
@@ -1,3 +1,3 @@
1
1
  module PostmonRuby
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/postmon_ruby.rb CHANGED
@@ -4,7 +4,6 @@ require "httparty"
4
4
 
5
5
  module PostmonRuby
6
6
  def self.consultar_cep(cep)
7
- a = Postmon.new.consultar_cep cep
8
- a
7
+ Postmon.new.consultar_cep cep
9
8
  end
10
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmon_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: