proz 0.0.9 → 0.0.10
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_entry.rb +6 -5
- 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: ee549bfd5fb9bc9e77e90b5277b82db59033e4b8
|
4
|
+
data.tar.gz: da4f7b1551bf1aa35939605db536db56e1622fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 903349e19292d2a6bb41727c0121cb65b6c2b71495a6b89513583b8ca6eb86a97bb603109402039e20d04600985874b668402141421d578d3b76b404be57d73c
|
7
|
+
data.tar.gz: bb7eb0c00c205ccc48c4da014a963a9d687380f003470ef1f451c8deff2473d76771fc6bc00310517cffdf2a7c904601317351fee69e63790e41b863f9839d9e
|
data/lib/proz/version.rb
CHANGED
data/lib/proz/wiwo_entry.rb
CHANGED
@@ -4,17 +4,18 @@ module Proz
|
|
4
4
|
class WiwoEntry
|
5
5
|
include HTTParty
|
6
6
|
base_uri "https://api.proz.com/v2"
|
7
|
-
attr_reader :token
|
8
|
-
def initialize(token:)
|
7
|
+
attr_reader :token, :message
|
8
|
+
def initialize(token:, message:)
|
9
9
|
@token = token
|
10
|
+
@message = message
|
10
11
|
end
|
11
12
|
|
12
13
|
def post
|
13
|
-
|
14
|
-
body: { message:
|
14
|
+
self.class.post("/workstatus",
|
15
|
+
body: { message: message,
|
15
16
|
source_language: "eng",
|
16
17
|
target_language: "spa",
|
17
|
-
wordcount: "234" }
|
18
|
+
wordcount: "234" },
|
18
19
|
headers: { 'Authorization' => "Bearer #{token}" } )
|
19
20
|
end
|
20
21
|
end
|