Skip to content

Commit c872fa7

Browse files
authored
remove skill api (#26)
1 parent 5ad7a0d commit c872fa7

File tree

6 files changed

+2
-51
lines changed

6 files changed

+2
-51
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://www.peopledatalabs.com/images/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
2+
<img src="https://www.peopledatalabs.com/images/logos/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
33
</p>
44
<h1 align="center">People Data Labs Ruby Library</h1>
55
<p align="center">Official Ruby client for the People Data Labs API.</p>
@@ -120,12 +120,6 @@ Peopledatalabs::Cleaner.school(kind: 'name', value: 'university of oregon')
120120
Peopledatalabs::JobTitle.retrieve(job_title: 'data scientist')
121121
```
122122

123-
**Using Skill Enrichment API**
124-
```ruby
125-
# Get Skill Enrichment
126-
Peopledatalabs::Skill.retrieve(skill: 'c++')
127-
```
128-
129123
**Using IP Enrichment API**
130124
```ruby
131125
# Get IP Enrichment
@@ -169,7 +163,6 @@ Peopledatalabs.sandbox = true
169163
| [Location Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#locationclean) | `Peopledatalabs::Cleaner.location(...params)` |
170164
| [School Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#schoolclean) | `Peopledatalabs::Cleaner.school(...params)` |
171165
| [Job Title Enrichment API](https://docs.peopledatalabs.com/docs/job-title-enrichment-api) | `Peopledatalabs::JobTitle.retrieve(...params)` |
172-
| [Skill Enrichment API](https://docs.peopledatalabs.com/docs/skill-enrichment-api) | `Peopledatalabs::Skill.retrieve(...params)` |
173166

174167
## 📘 Documentation <a name="documentation"></a>
175168

lib/peopledatalabs.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
require 'peopledatalabs/resources/retrieve'
1212
require 'peopledatalabs/resources/bulk'
1313
require 'peopledatalabs/resources/jobtitle'
14-
require 'peopledatalabs/resources/skill'
1514

1615

1716
# gem build peopledatalabs.gemspec
@@ -40,7 +39,6 @@
4039
# Peopledatalabs::Search.company(searchType: 'sql', size: 10, query: "SELECT * FROM company WHERE tags='big data' AND industry='financial services' AND location.country='united states';")
4140
# Peopledatalabs::Search.company(searchType: 'elastic', size: 10, query: { query: { bool: { must: [{term: {location_country: 'mexico'}}, {term: {job_title_role: 'health'}}, {exists: {field: 'phone_numbers'}}]}}})
4241
# Peopledatalabs::JobTitle.retrieve(job_title: 'data scientist')
43-
# Peopledatalabs::Skill.retrieve(skill: 'c++')
4442
# Peopledatalabs::Enrichment.ip(ip: '72.212.42.169')
4543

4644
module Peopledatalabs

lib/peopledatalabs/api_resource.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ def self.check(params:, path:)
8686
if (!field)
8787
result = { 'status' => 400, 'message' => 'Missing job_title' }
8888
end
89-
elsif path.include? '/skill'
90-
field = params['skill']
91-
if (!field)
92-
result = { 'status' => 400, 'message' => 'Missing skill' }
93-
end
9489
elsif path.include? '/ip'
9590
field = params['ip']
9691
if (!field)

lib/peopledatalabs/resources/skill.rb

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/peopledatalabs/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Peopledatalabs
2-
VERSION = "4.0.0"
2+
VERSION = "5.0.0"
33
end

spec/peopledatalabs_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,6 @@
240240
end
241241
end
242242

243-
describe 'skill' do
244-
it "should return skill record" do
245-
result = Peopledatalabs::Skill.retrieve(skill: 'c++')
246-
expect(result['status']).to eq(200)
247-
expect(result).to be_an_instance_of(Hash)
248-
end
249-
250-
it "should error" do
251-
result = Peopledatalabs::Skill.retrieve(skill: nil)
252-
expect(result['status']).to eq(400)
253-
expect(result).to be_an_instance_of(Hash)
254-
end
255-
end
256-
257243
describe 'ip' do
258244
it "should return ip record" do
259245
result = Peopledatalabs::Enrichment.ip(ip: '72.212.42.169')

0 commit comments

Comments
 (0)