xentek / hyperdrive

hypermedia state machine
https://rubygems.org/gems/hyperdrive
MIT License
5 stars 0 forks source link

Extract rendering logic from Hyperdrive::Endpoint #6

Open xentek opened 10 years ago

xentek commented 10 years ago

Extract render logic from Hyperdrive::Endpoint so that we can support multiple automatic serialization when request blocks returns ruby Array or Hash. Will likely need to use an Adapter pattern and allow the object responsible for rendering to be injected in at runtime. This should help get hyperdrive to a point where it can flexibly support multiple media types.