Sha256: 6e6d10defa36977c1c8f6c23f9594856fb975c4ed5debea88d950db2a5cd7545

Contents?: true

Size: 580 Bytes

Versions: 9

Compression:

Stored size: 580 Bytes

Contents

class VolumeSnapshot < Praxis::MediaType
  identifier 'application/json'

  attributes do
    attribute :id, Integer
    attribute :name, String, regexp: /snapshot-(\w+)/
  end

  default_fieldset do
    attribute :id
    attribute :name
  end

  class CollectionSummary < Praxis::MediaType
    identifier 'application/json'

    attributes do
      attribute :name, String, regexp: /snapshots-(\w+)/
      attribute :size, Integer
      attribute :href, String
    end

    default_fieldset do
      attribute :name
      attribute :size
      attribute :href
    end
  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_snapshot.rb
praxis-2.0.pre.17 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.16 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.15 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.14 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.13 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.12 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.11 spec/spec_app/design/media_types/volume_snapshot.rb
praxis-2.0.pre.10 spec/spec_app/design/media_types/volume_snapshot.rb