lib/translate.rb
# Call a wordreference url, dynamiquely builded with from expression and combination.
# We need to provide an User-Agent otherwise we're redirected to yahoo.
Call a wordreference url, dynamiquely builded with from expression and combination.
We need to provide an User-Agent otherwise we're redirected to yahoo.
Call a wordreference url dynamiquely builded with from expression and combination . We need to provide an User - Agent otherwise we ' re redirected to yahoo .
def retrieve
			request = Net::HTTP::Get.new(url.path)
			request.add_field('User-Agent', 'translate')
			Net::HTTP.new(url.host, url.port).request(request).body
		end
def retrieve request = Net :: HTTP :: Get . new ( url . path ) request . add_field ( 'User-Agent' , 'translate' ) Net :: HTTP . new ( url . host , url . port ) . request ( request ) . body end
Call a wordreference url, dynamiquely builded with from expression and combination.
Call a wordreference url dynamiquely builded with from expression and combination .