railslove/contactually-api

View on GitHub
lib/contactually/representer/content_representer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Contactually
  class Content < OpenStruct
  end

  module Representer
    class ContentRepresenter < Roar::Decorator
      include Roar::Representer::JSON
      property :id
      property :user_id
      property :url
      property :title
      property :description
      property :article
      property :original_content_id
      collection :groupings, extend: GroupingRepresenter, class: Grouping
    end
  end
end