Class: OpenapiFirst::Header
- Inherits:
-
Data
- Object
- Data
- OpenapiFirst::Header
- Defined in:
- lib/openapi_first/header.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#required? ⇒ Object
readonly
Returns the value of attribute required?.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/openapi_first/header.rb', line 4 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute 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?
4 5 6 |
# File 'lib/openapi_first/header.rb', line 4 def required? @required? end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema
4 5 6 |
# File 'lib/openapi_first/header.rb', line 4 def schema @schema end |
Instance Method Details
#resolved_schema ⇒ Object
5 6 7 |
# File 'lib/openapi_first/header.rb', line 5 def resolved_schema node['schema']&.resolved end |