Forum: Ruby on Rails design question for a web service client

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7cdce9e94d317c4f0a3dcc20cc3b4115?d=identicon&s=25 Nicholas Wieland (Guest)
on 2006-04-25 01:16
(Received via mailing list)
I have a module that queries a web service and returns an xml
document (sometimes more than one).
I've put the module under lib, and created a model to use the
resulting xml documents.
Obviously the document needs to be parsed with rexml, and return a
ruby data structure to the controller that can be used in various
ways in my views.
Would you implement all the specialized parsing stuff inside the
model or inside the lib/ module ?

TIA,
   ngw
--
Nicholas Wieland
nicholas_wieland@yahoo.it








___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
This topic is locked and can not be replied to.