Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2361
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | Alex Rothbard <alex323@gmail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Seeking advice |
| Date | Tue, 5 Apr 2011 13:30:52 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 24 |
| Message-ID | <b28cf1e7707e7c222bf1086109e644f5@ruby-forum.com> (permalink) |
| References | <a5c155d833135cc1cccec3cf894380c8@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1302028276 65129 65.111.164.187 (5 Apr 2011 18:31:16 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Tue, 5 Apr 2011 18:31:16 +0000 (UTC) |
| In-Reply-To | <a5c155d833135cc1cccec3cf894380c8@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 381022 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <b28cf1e7707e7c222bf1086109e644f5@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:2361 |
Show key headers only | View raw
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