Class: Plino::Client
- Inherits:
-
Object
- Object
- Plino::Client
- Defined in:
- lib/plino/client.rb
Overview
This class is used for calling Plino API
Constant Summary collapse
- BASE_URL =
'https://plino.herokuapp.com'.freeze
- CLASSIFY_PATH =
'/api/v1/classify/'.freeze
Instance Method Summary collapse
Instance Method Details
#classify(text) ⇒ Object
10 11 12 |
# File 'lib/plino/client.rb', line 10 def classify(text) post(CLASSIFY_PATH, email_text: text) end |