proz 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proz/version.rb +1 -1
- data/lib/proz/wiwo_entries.rb +6 -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: 9180e66a0356202b74f7348c355850a7174f04c6
|
4
|
+
data.tar.gz: 2739db2c51513f1e852e894a8552b795e24db159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef81a28449775e3b928f7bfd2366480157cfeb10a95ce05eed2107c5be1b9a59e26c5716f5c23baf97244457a5a7a2d210ad76b806618372b5777cedce23ce96
|
7
|
+
data.tar.gz: f0efe0279efff799f6fc02f3c13711e8884c0c81f24c8b08746205424a9380db408b00d19dfbc9265a006b6ac281f19bda695c8cb0b1ae83330a8ec4fabf4abd
|
data/lib/proz/version.rb
CHANGED
data/lib/proz/wiwo_entries.rb
CHANGED
@@ -3,10 +3,14 @@ require 'httparty'
|
|
3
3
|
module Proz
|
4
4
|
class WiwoEntries
|
5
5
|
include HTTParty
|
6
|
-
|
6
|
+
base_uri "https://api.proz.com/v2"
|
7
|
+
attr_reader :token
|
8
|
+
def initialize(token:)
|
9
|
+
@token = token
|
10
|
+
end
|
7
11
|
|
8
12
|
def entries
|
9
|
-
self.class.get("/workstatus/search")
|
13
|
+
self.class.get("/workstatus/search", headers: { 'Authorization' => "Bearer #{token}" })
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|