Class: Spotlight::PageRepresenter

Inherits:
Roar::Decorator
  • Object
show all
Includes:
Roar::JSON
Defined in:
app/serializers/spotlight/page_representer.rb

Direct Known Subclasses

NestedPageRepresenter

Instance Method Summary collapse

Instance Method Details

#contentObject



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