Class: EMTypographer
- Inherits:
-
Object
- Object
- EMTypographer
- Defined in:
- lib/e_m_typographer.rb
Constant Summary collapse
- TYPOGRAPHER_REQUEST_URI =
URI('http://mdash.ru/api.v1.php')
Class Method Summary collapse
Class Method Details
.apply(text) ⇒ Object
8 9 10 11 12 |
# File 'lib/e_m_typographer.rb', line 8 def self.apply(text) response = send_typographer_post_request(text) JSON.parse(response.body)['result'] if response && response.body['result'] end |