Sha256: 53d92f60d8466ac0fd149c3a87801224f763a677a12df9afe1846e8bfd460800
Contents?: true
Size: 585 Bytes
Versions: 23
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Praxis # Stripped-down representation of an Internet Media Type where the structure and content of the # type are unknown, or are defined externally to the Praxis application. # # @see Praxis::MediaType # @see Praxis::Types::MediaTypeCommon SimpleMediaType = Struct.new(:identifier) do def name self.class.name end def self.id 'Praxis-SimpleMediaType' end def id self.class.id end def describe(*) { name: name, family: 'string', id: id, identifier: identifier } end end end
Version data entries
23 entries across 23 versions & 1 rubygems