Sha256: 84fa4177316e910ff7bcbd60ab40e382cff9a5fe3ac12ede5cda1a3cc2608f09

Contents?: true

Size: 562 Bytes

Versions: 9

Compression:

Stored size: 562 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
  end

  default_fieldset do
    attribute :id
    attribute :name
    attribute :source
    attribute :snapshots
  end

  class Collection < Praxis::Collection
    member_type Volume

    identifier 'application/vnd.acme.volumes'
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
praxis-2.0.pre.18 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.17 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.16 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.15 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.14 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.13 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.12 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.11 spec/spec_app/design/media_types/volume.rb
praxis-2.0.pre.10 spec/spec_app/design/media_types/volume.rb