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.
- checksums.yaml +4 -4
- data/lib/lead_create.rb +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88cd98218fcbc7c2b5fcaba821c4befb491ae527
|
4
|
+
data.tar.gz: c2ab8a2b02158dbb0dcead7fc6eccc5718bf2727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|