Tras leer esta idea de Albert Coronado para convertir moneda con Google y PHP, se me ha ocurrido probar a hacer lo mismo con Ruby, y este es el resultado:
require ‘open-uri’
class ConversorMonedaGoogle
def self.euro_a_dolar
google = open(”http://google.es/search?q=1+Euro+to+%24″).read
pos_euro = google.index(”1 Euro = “)
pos_dolar = [...]
Search
You are currently browsing the Jaime Iniesta - Programador web freelance Ruby on Rails weblog archives for
Fatal error: Call to undefined function utw_showcurrenttagset() in /home/.birdie/jaimeiniesta/jaimeiniesta.com/wp-content/themes/unsleepable/sidebar.php on line 67