From: Alex Rothbard Date: 2011-04-06T03:30:52+09:00 Subject: Re: Seeking advice The factory design pattern is sort of what I want, but not exactly. Remember that there are three different classes (services) that need to take advantage of a transport. The library is broken down like this: There is a high level class that represents a user's overall account. The user uses this class only. This account class needs to access three different "services" (classes): the grid, the archive, and the transaction service. All three services need to communicate with the remote server using a transport. In the example above, the transport is providing methods for accessing the grid, but I am thinking of it in another way: the grid/archive/transaction classes should provide methods which correspond to the API on the remote server, and those classes then use the selected transport to send it across. In short, I have a server library which offers up three sets of APIs (one for each service), and I want to be able to allow the end user to easily choose which transport the client library uses when accessing these services. -- Posted via http://www.ruby-forum.com/.