Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2361
| From | Alex Rothbard <alex323@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Seeking advice |
| Date | 2011-04-05 13:30 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <b28cf1e7707e7c222bf1086109e644f5@ruby-forum.com> (permalink) |
| References | <a5c155d833135cc1cccec3cf894380c8@ruby-forum.com> |
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/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Seeking advice Alex Rothbard <alex323@gmail.com> - 2011-04-05 08:22 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 08:39 -0500
Re: Seeking advice Johnny Morrice <spoon@killersmurf.com> - 2011-04-05 09:44 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 10:23 -0500
Re: Seeking advice Johnny Morrice <spoon@killersmurf.com> - 2011-04-05 08:43 -0500
Re: Seeking advice Alex Rothbard <alex323@gmail.com> - 2011-04-05 13:30 -0500
Re: Seeking advice Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-04-06 01:53 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-06 04:30 -0500
csiph-web