lj_test_api 0.1.0 → 0.1.1

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: 0b4b26bd7761160ee0763b7f397cee7216909633
4
- data.tar.gz: 5a079c161d9ef55f28d3b91baef077ddaa06f88b
3
+ metadata.gz: 4d88caaaf4b057c66a072f4a9671dcdf7d3f92fb
4
+ data.tar.gz: 36e0f72251e84a97ad28f62369fa17690500a573
5
5
  SHA512:
6
- metadata.gz: 64e90b9e38f23738015e3744d4d68ffb09d2482b2649ab12eb09176c3179d388cdb3ab319e3d39cfef587f89521588fe95a2284f5a825210591675e66b36a2f9
7
- data.tar.gz: d3de4eeea382dbd349016edaaab5d144751c4a1580b16dc2af03ee3d422c6ab6759b96c20e043f4c6e0780bfaac8625f822febeb402198d3d2150a0327a9230e
6
+ metadata.gz: 4eda200e09e80f10f9ae36a9223f1595525f6dd0e31d4e9d5a513534b55b42d7e2155f0a367a5088ea3267028ef947662cc21877c800bf8bc9db49a7350cdc78
7
+ data.tar.gz: fbc456b8fb9bcd184c25940b76362c7b634afdfea75fd1f13e5802391111f3733115d716a345f5c558c91f54690a1a320432382a92189d2bf31aee04602647d0
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- employees = LjTestApi::Employee.all
25
+ employees = LjTestApi::ApiCall.url()
26
26
 
27
27
  ## Development
28
28
 
@@ -1,3 +1,3 @@
1
1
  module LjTestApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/lj_test_api.rb CHANGED
@@ -2,15 +2,16 @@ require "lj_test_api/version"
2
2
  require "unirest"
3
3
 
4
4
  module LjTestApi
5
- class Employee
6
- def self.all
7
- bulk_data = Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json").body
8
- bulk_data
5
+ class ApiCall
6
+ def self.url(api_endpoint)
7
+ data = Unirest.get("#{api_endpoint}").body
8
+ data
9
+
9
10
  end
10
11
 
11
- def self.department(parameter)
12
- bulk_data = Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json?department=#{parameter.upcase}").body
13
- bulk_data
14
- end
12
+ # def self.department(parameter)
13
+ # bulk_data = Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json?department=#{parameter.upcase}").body
14
+ # bulk_data
15
+ # end
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lj_test_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauren Joyce