From 3874c400840059772b11da544aabd107cb3c065f Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Sat, 25 Feb 2012 17:00:28 -0800 Subject: [PATCH] committed a notes file by accident, sry [ci skip] --- lib/postzord/presenter.rb | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 lib/postzord/presenter.rb diff --git a/lib/postzord/presenter.rb b/lib/postzord/presenter.rb deleted file mode 100644 index 5d70da3fb..000000000 --- a/lib/postzord/presenter.rb +++ /dev/null @@ -1,33 +0,0 @@ -#dispatching -#a class that figures out the markup of an object -class Federated::Presenter -end - -#a class that detects the audience of a post -class Federated::Audience -end - -#this class dispatchs the post to services, like facebook, twitter, etc -class ServiceDispatcher - #interacts with a single post, and many provided services -end - -#Receiving Phases - #receive request => check author - #xml payload - #decode - #convert to meta object - #perfom various validations - #recieve! <= save object, if applicable - #after_receive hook - - - Ideas: - Federated objects are delegated stubs of real objects, with converstion constuctors - - this turns receive to "make model level object from payload" - - seperate validations and checking with persistance and noticiation layer - - - - http => deserliaization/decoding/descrypting => meta object => validations => receive => cleanup -