rds_pdrive 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eff7734fcc1309d79b71159fe3f03071eb0b221
4
- data.tar.gz: 71cfa45014d1d5be6771aea55caa8523fbe1ad36
3
+ metadata.gz: dce24e0e336da22f4ea6621bfe7602eac2622a84
4
+ data.tar.gz: 88065447f56763fd7bfd83c67aefb2f97ea314b7
5
5
  SHA512:
6
- metadata.gz: 95aa1e18882ff78383c2d8cd1c38888bff80700b269c4125637231856bb7c4f5c129f034c9ba7279962f07f45d1e4a27e3fcbe89ea00189869e1bd691b94e858
7
- data.tar.gz: b0dfd650b2d42fec11abe0e9cf3ae2a419c31a27e83f2b9136c5cf2b594bed0cc3e616324a8b362c166fd06e5bf24d7b9d5842ac9f93b19698ce2156599d6501
6
+ metadata.gz: a40fb8137472aa46abd5c36e517dc1f2da8045553b57abdfd453c4890db4b15b49cb9a8cbc5e25a0daea0a81d727acf39ee3341bc11865582fd71914dbeea752
7
+ data.tar.gz: 0df2c275120aaa06b3773464fe9cc4d7bdd1d8bf9f70de8982e124ade82ae301a80296efc506e03825eee32110eb05fec763c6a07d59f48f32aa062130de5064
data/README.md CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
24
24
 
25
25
  For Authenticated in account is passed the email and password in the construtor of the class Integrator as in the example:
26
26
 
27
- integrator = Integrator('emailteste@gmail.com', 'pass123pass')
27
+ integrator = Integrator.new('emailteste@gmail.com', 'pass123pass')
28
28
 
29
29
  For list all persons of the authenticated account use the function get_all_leads of the class Integrator as in the example:
30
30
 
@@ -14,10 +14,12 @@ module RdsPdrive
14
14
  end
15
15
 
16
16
  def get_all_leads
17
+
17
18
  uri = URI.parse("#{@url}persons?api_token=#{@token}")
18
19
  response = Net::HTTP.get(uri)
19
20
  objeto_json = JSON.parse(response)
20
21
  data = objeto_json['data']
22
+ @leads = []
21
23
  data.each do |d|
22
24
  lead = Lead.new(d['name'], "", d['email'][0]['value'], "", d['phone'][0]['value'])
23
25
  @leads << lead
@@ -1,3 +1,3 @@
1
1
  module RdsPdrive
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rds_pdrive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Petronilio de Oliveira