Class: Spotlight::PageRepresenter
- Inherits:
-
Roar::Decorator
- Object
- Roar::Decorator
- Spotlight::PageRepresenter
- Includes:
- Roar::JSON
- Defined in:
- app/serializers/spotlight/page_representer.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
12 13 14 15 |
# File 'app/serializers/spotlight/page_representer.rb', line 12 def content # get the sir-trevor objects as JSON. represented.content.as_json end |
#content=(content) ⇒ Object
17 18 19 |
# File 'app/serializers/spotlight/page_representer.rb', line 17 def content= content represented.content = content end |