class Glosbe::Client
- Glosbe::Client
- Reference
- Object
Defined in:
glosbe/client.crConstant Summary
-
API_URL =
"https://glosbe.com/gapi_v0_1"
Instance Method Summary
-
#tm(from : String | Symbol, dest : String | Symbol, phrase : String, page : Integer = 1, page_size : Integer = 30) : TmResponse
Access translation memory (examples of word usage).
-
#translate(from : String | Symbol, dest : String | Symbol, phrase : String, tm : Bool = false) : TranslateResponse
Translate from
from
language intodest
.
Instance Method Detail
def tm(from : String | Symbol, dest : String | Symbol, phrase : String, page : Integer = 1, page_size : Integer = 30) : TmResponse
#
Access translation memory (examples of word usage).
client.tm("ru", "eo", "привет")
def translate(from : String | Symbol, dest : String | Symbol, phrase : String, tm : Bool = false) : TranslateResponse
#
Translate from from
language into dest
. Include examples if #tm
is true.
client.translate("ru", "eo", "привет")