Sha256: 197e21758f7162224ad5ce8bbcc89b0e2f42268b43963c4e5c8357b6b8bcafd8
Contents?: true
Size: 307 Bytes
Versions: 1
Compression:
Stored size: 307 Bytes
Contents
# frozen_string_literal: true require 'support/all/article' module OrderRepresenter include Roar::JSON include Roar::Hypermedia property :id property :client_id collection :articles, class: Article link :self do "/order/#{id}" end link :items do "/order/#{id}/items" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-roar-0.4.1 | spec/support/all/order_representer.rb |