Class: Reynard::MediaType

Inherits:
Object
  • Object
show all
Defined in:
lib/reynard/media_type.rb

Overview

Holds node reference a media type in the API specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (readonly)

Returns the value of attribute node.



6
7
8
# File 'lib/reynard/media_type.rb', line 6

def node
  @node
end