Class: Praxis::SimpleMediaType
- Inherits:
-
Struct
- Object
- Struct
- Praxis::SimpleMediaType
- Defined in:
- lib/praxis/simple_media_type.rb
Overview
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.
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier
9 10 11 |
# File 'lib/praxis/simple_media_type.rb', line 9 def identifier @identifier end |
Class Method Details
.id ⇒ Object
14 15 16 |
# File 'lib/praxis/simple_media_type.rb', line 14 def self.id 'Praxis-SimpleMediaType' end |
Instance Method Details
#describe ⇒ Object
22 23 24 |
# File 'lib/praxis/simple_media_type.rb', line 22 def describe(*) { name: name, family: 'string', id: id, identifier: identifier } end |
#id ⇒ Object
18 19 20 |
# File 'lib/praxis/simple_media_type.rb', line 18 def id self.class.id end |
#name ⇒ Object
10 11 12 |
# File 'lib/praxis/simple_media_type.rb', line 10 def name self.class.name end |