Sha256: 4f38feaff0ffb688da38aa83cc47b449ec6a53daf41a77cd12b61acb3b7f0c47
Contents?: true
Size: 754 Bytes
Versions: 6
Compression:
Stored size: 754 Bytes
Contents
class Volume < Praxis::MediaType identifier 'application/vnd.acme.volume' attributes do attribute :id, Integer attribute :name, String attribute :source, VolumeSnapshot attribute :snapshots, Praxis::Collection.of(VolumeSnapshot) attribute :snapshots_summary, VolumeSnapshot::CollectionSummary links do link :source link :snapshots, VolumeSnapshot::CollectionSummary, using: :snapshots_summary end end view :default do attribute :id attribute :name attribute :source attribute :snapshots attribute :links end view :link do attribute :id end class Collection < Praxis::Collection member_type Volume identifier 'application/vnd.acme.volumes' end end
Version data entries
6 entries across 6 versions & 1 rubygems