Class: Protocol::Media::Registry::Record
- Inherits:
-
Object
- Object
- Protocol::Media::Registry::Record
- Defined in:
- lib/protocol/media/registry/record.rb
Overview
A media type and its associated registry metadata.
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
- #Known filename extensions.(filenameextensions.) ⇒ Object readonly
- #The conventional transfer encoding.(conventionaltransferencoding.) ⇒ Object readonly
- #The media type.(mediatype.) ⇒ Object readonly
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, encoding: nil, extensions: nil) ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize(type, encoding: nil, extensions: nil) ⇒ Record
Returns a new instance of Record.
23 24 25 26 27 |
# File 'lib/protocol/media/registry/record.rb', line 23 def initialize(type, encoding: nil, extensions: nil) @type = type @encoding = encoding @extensions = extensions end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
15 16 17 |
# File 'lib/protocol/media/registry/record.rb', line 15 def encoding @encoding end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
18 19 20 |
# File 'lib/protocol/media/registry/record.rb', line 18 def extensions @extensions end |
#Known filename extensions.(filenameextensions.) ⇒ Object (readonly)
18 |
# File 'lib/protocol/media/registry/record.rb', line 18 attr_reader :extensions |
#The conventional transfer encoding.(conventionaltransferencoding.) ⇒ Object (readonly)
15 |
# File 'lib/protocol/media/registry/record.rb', line 15 attr_reader :encoding |
#The media type.(mediatype.) ⇒ Object (readonly)
12 |
# File 'lib/protocol/media/registry/record.rb', line 12 attr_reader :type |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/protocol/media/registry/record.rb', line 12 def type @type end |