Class: OpenApi::DSL::HeaderObj
- Inherits:
-
Hash
- Object
- Hash
- OpenApi::DSL::HeaderObj
- Includes:
- Helpers
- Defined in:
- lib/oas_objs/header_obj.rb
Overview
Instance Attribute Summary collapse
-
#processed ⇒ Object
Returns the value of attribute processed.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(desc = '', schema) ⇒ HeaderObj
constructor
A new instance of HeaderObj.
- #process ⇒ Object
Methods included from Helpers
#_combined_schema, #arrow_writing_support, #process_schema_input
Constructor Details
Instance Attribute Details
#processed ⇒ Object
Returns the value of attribute processed.
11 12 13 |
# File 'lib/oas_objs/header_obj.rb', line 11 def processed @processed end |
#schema ⇒ Object
Returns the value of attribute schema.
11 12 13 |
# File 'lib/oas_objs/header_obj.rb', line 11 def schema @schema end |
Instance Method Details
#process ⇒ Object
18 19 20 |
# File 'lib/oas_objs/header_obj.rb', line 18 def process processed.merge!(schema: schema.process) end |