class Pingilish::Farsi
Constants
- TO_FARSI_QUERY_STRING
- TO_FARSI_SERVICE_URL
Public Class Methods
new(text)
click to toggle source
# File lib/pingilish.rb, line 86 def initialize(text) @text = text end
Public Instance Methods
to_farsi()
click to toggle source
# File lib/pingilish.rb, line 90 def to_farsi Net::HTTP.post_form(URI.parse(TO_FARSI_SERVICE_URL), {TO_FARSI_QUERY_STRING => @text.downcase }).body # TODO: save the files in yaml # TODO: verify that it's persian end