lead_create 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lead_create.rb +8 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a66c4acc5d14ab032f671ac76a8d222aa922cd52
4
- data.tar.gz: dd951e507d554a458b2b8002e72c5afd147f57cb
3
+ metadata.gz: 88cd98218fcbc7c2b5fcaba821c4befb491ae527
4
+ data.tar.gz: c2ab8a2b02158dbb0dcead7fc6eccc5718bf2727
5
5
  SHA512:
6
- metadata.gz: 1f02a0873950a97ab94cc9a15a9860d26cec1d1bb55b5ea5ea8b0a19c666d53113b0d465ae2eb8d8b829914e71617af72a6c84c793526a34924b137216d3499f
7
- data.tar.gz: 0c4f456c95f28083ecbdafb777a6c8ab655d90e6771665152c1426fe6d6f41fed03c0cbd5e58cdb84c08bc1581d79b84946a70c29800f1495dc9ba0d270d9927
6
+ metadata.gz: b6fd5d46dd7a87f934bf29e046d42aefc885d0170cafc4a1098ec729f96f67b93388255e7e75bbcbb19d8ccd6dbdc4dc88384528127f9ec2adcd9c4f08c75526
7
+ data.tar.gz: 1ca0d1f03f95ccb53e36505a593dd0a7b1960fbd88d7181d2144b626befc88e3d7639639ef2026b0555babcd69ef87edfeaaea81cacac3d99f4bb9feb10dbdf7
data/lib/lead_create.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  class LeadCreate
2
2
  def self.create(contato)
3
3
  client = Databasedotcom::Client.new('config/databasedotcom.yml')
4
- # client.authenticate :token => 'DT0tilUUmpLca7X5kWKGCKDf', :instance_url => 'http://na1.salesforce.com' #=> "my-oauth-token"
5
- client.authenticate :username => client.username, :password => client.password
4
+ client.authenticate :username => 'matheuslucena@gmail.com', :password => 'slayer666DT0tilUUmpLca7X5kWKGCKDf'
6
5
  lead = client.materialize('Lead')
7
6
  user = client.materialize('User')
8
7
  @lead = lead.new
@@ -20,4 +19,11 @@ class LeadCreate
20
19
  contato.name + ' successfully added'
21
20
  end
22
21
  end
22
+
23
+ def self.list_leads
24
+ client = Databasedotcom::Client.new('config/databasedotcom.yml')
25
+ client.authenticate :username => 'matheuslucena@gmail', :password => 'slayer666DT0tilUUmpLca7X5kWKGCKDf'
26
+ lead = client.materialize('Lead')
27
+ lead.all
28
+ end
23
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lead_create
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matheus Lucena