module NlgXmlRealiserBuilder
Constants
- VERSION
Public Class Methods
test_post(text)
click to toggle source
# File lib/nlg_xml_realiser_builder.rb, line 12 def self.test_post(text) uri = URI.parse("#{ENV['SERVICE_URL'] || 'http://nlg-service.herokuapp.com'}/api/realiser") response = Net::HTTP.post_form(uri, {"xml" => text}) response.body.strip end