(c) 2014-2015 Pito Salas
Contains a series of examples for teaching and demonstrating how Webservices work.
Used at Brandeis University
gem xml-simple
-
Json_xml_ruby.rb: Working with Web Services will require various data formats. This example illustrates conversions between xml, json and text in Ruby.
-
stockprice_api.rb: Work with the quandl API retrieve stock prices and convert them from JSON to a hash. Illustrates getting data out of an API and manipulating it.
-
memoize_tdd_stockprice.rb Illustrate TDD and caching of data of stock prices
-
To see how this works within rails, here are two examples: