1 2 3 4 5
class NoteAttachmentEntity < Grape::Entity expose :url expose :filename expose :image?, as: :image end