Sha256: 5fa95d7ffd660cae8c228b3b2c925e157a652dc9c56dabf60f7249dde18ae0c3

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

require "modern/struct"

module Modern
  module Descriptor
    class Content < Modern::Struct
      Type = Types.Instance(self)

      attribute :media_type, Types::MIMEType
      attribute :type, (Types::Type | Types::Struct).optional.default(nil)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
modern-0.5.0 lib/modern/descriptor/content.rb
modern-0.4.6 lib/modern/descriptor/content.rb
modern-0.4.5 lib/modern/descriptor/content.rb
modern-0.4.4 lib/modern/descriptor/content.rb
modern-0.4.3 lib/modern/descriptor/content.rb
modern-0.4.2 lib/modern/descriptor/content.rb