Class: OpenapiFirst::Header

Inherits:
Data
  • Object
show all
Defined in:
lib/openapi_first/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • the current value of name



4
5
6
# File 'lib/openapi_first/header.rb', line 4

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node

Returns:

  • the current value of node



4
5
6
# File 'lib/openapi_first/header.rb', line 4

def node
  @node
end

#required?Object (readonly)

Returns the value of attribute required?

Returns:

  • the current value of required?



4
5
6
# File 'lib/openapi_first/header.rb', line 4

def required?
  @required?
end

#schemaObject (readonly)

Returns the value of attribute schema

Returns:

  • the current value of schema



4
5
6
# File 'lib/openapi_first/header.rb', line 4

def schema
  @schema
end

Instance Method Details

#resolved_schemaObject



5
6
7
# File 'lib/openapi_first/header.rb', line 5

def resolved_schema
  node['schema']&.resolved
end