Sha256: 4c12555555800a0734412d31f9853f76dfbc07168043a726cc797eaf517ce786
Contents?: true
Size: 707 Bytes
Versions: 11
Compression:
Stored size: 707 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
11 entries across 11 versions & 1 rubygems