Sha256: ba1b9d6454ab22309135301a3d5eb4e7d07afe8e5fe8b10cd9469f935d15499a

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

class Author < Praxis::MediaType
  identifier 'application/vnd.acme.author'

  domain_model 'Resources::Author'
  attributes do
    attribute :id, Integer
    attribute :name, String
    attribute :display_name, String
    attribute :books, Praxis::Collection.of(Book)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
praxis-2.0.0 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.40 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.39 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.38 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.37 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.36 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.35 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.34 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.33 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.32 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.31 spec/spec_app/design/media_types/author.rb
praxis-2.0.pre.30 spec/spec_app/design/media_types/author.rb