post_serializer.rb 402 Bytes
Newer Older
1 2
module Export
  class PostSerializer < ActiveModel::Serializer
3 4
    attributes :guid,
               :text,
5 6 7 8 9 10 11 12
               :public,
               :diaspora_handle,
               :type,
               :image_url,
               :image_height,
               :image_width,
               :likes_count,
               :comments_count,
13 14
               :reshares_count,
               :created_at
15 16
  end
end