Class: Reynard::MediaType
- Inherits:
-
Object
- Object
- Reynard::MediaType
- Defined in:
- lib/reynard/media_type.rb
Overview
Holds node reference a media type in the API specification.
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node:) ⇒ MediaType
constructor
A new instance of MediaType.
Constructor Details
#initialize(node:) ⇒ MediaType
Returns a new instance of MediaType.
8 9 10 |
# File 'lib/reynard/media_type.rb', line 8 def initialize(node:) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
6 7 8 |
# File 'lib/reynard/media_type.rb', line 6 def node @node end |