Book Image

Ruby on Rails Web Mashup Projects

Book Image

Ruby on Rails Web Mashup Projects

Overview of this book

Table of Contents (14 chapters)
Ruby on Rails Web Mashup Projects
Credits
About the Author
Acknowledgements
About the Reviewer
Preface

Design


The fundamental design of the system is simple. We will create an object called Location, which will encapsulate all the information that is required for the mashup. Then, using a web application we will extract the information from the Location object and display it on a single web page.

The Location object will hide away all the implementation of extracting information from the various API providers, so most of the action will reside in this object. For the currency conversion, we will also create a Currency object, which the Location object calls, to abstract the currency conversion implementation.

Little to almost no processing is done in this mashup application as the API providers will be doing most of the processing. The mashup's main work is in taking input from the user, getting information from the various providers and displaying it appropriately back to the user. Where needed, data from one provider is passed on to a second provider.