class Reynard::MediaType
Holds node reference and schema name to a media type in the API specification.
Attributes
node[R]
schema_name[R]
Public Class Methods
new(node:, schema_name:)
click to toggle source
# File lib/reynard/media_type.rb, line 8 def initialize(node:, schema_name:) @node = node @schema_name = schema_name end
Public Instance Methods
media_type()
click to toggle source
# File lib/reynard/media_type.rb, line 13 def media_type @node[6] end
response_code()
click to toggle source
# File lib/reynard/media_type.rb, line 17 def response_code @node[4] end