Sha256: fa883d1ca0873027e24efc38a4282344518c1bf509c03eef997effa8ca420dd5
Contents?: true
Size: 671 Bytes
Versions: 6
Compression:
Stored size: 671 Bytes
Contents
require 'roar/representer/json' require 'roar/representer/feature/http_verbs' require 'roar/representer/feature/hypermedia' module JSON class Item include Roar::Representer::JSON property :article_id property :amount include Roar::Representer::Feature::HttpVerbs include Roar::Representer::Feature::Hypermedia end class Order include Roar::Representer::JSON property :client_id collection :items, :class => Item include Roar::Representer::Feature::HttpVerbs include Roar::Representer::Feature::Hypermedia link :items do items_url end link :self do order_url(represented) end end end
Version data entries
6 entries across 6 versions & 1 rubygems