Deserializer utilizes passed in target

Refactored deserializer to utilize similar interface as serializer
Restored two phase functionality to serializer
Removed doubles and replaced with actual Serializers (see spec_helper)
Well, if there is some secret sauce in #to_h, that should be abstracted in
the implementation of to_h, or we should get rid of to_hash and just have
to_h, which just returns a hash. Maybe a TODO to fix this in future PR.



On Wed, Jun 11, 2014 at 9:50 AM, Shea Valentine <notifications@github.com>
wrote:

> In spec/lib/representors/serialization/deserializer_factory_spec.rb:
>
> > @@ -41,7 +41,7 @@ module Representors
> >
> >        shared_examples_for 'a built deserializer' do
> >          it 'sets the correct target in the deserializer' do
> > -          expect(deserializer.target).to eq({})
> > +          expect(deserializer.to_hash.to_h).to eq({})
>
> to_hash actually returns a representor_hash not a proper hash.
>
> It's totally funky. I think the method needs to be #to_representor_hash
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mdsol/crichton-representors/pull/23/files#r13660013>.
>