Module: JPie::Controller::Rendering
- Included in:
- JPie::Controller
- Defined in:
- lib/jpie/controller/rendering.rb
Instance Method Summary collapse
Instance Method Details
#deserializer ⇒ Object
15 16 17 |
# File 'lib/jpie/controller/rendering.rb', line 15 def deserializer @deserializer ||= JPie::Deserializer.new(resource_class) end |
#resource_class ⇒ Object
6 7 8 9 |
# File 'lib/jpie/controller/rendering.rb', line 6 def resource_class # Default implementation that infers from controller name @resource_class ||= infer_resource_class end |
#serializer ⇒ Object
11 12 13 |
# File 'lib/jpie/controller/rendering.rb', line 11 def serializer @serializer ||= JPie::Serializer.new(resource_class) end |