Class: Jsapi::Meta::Header::Reference
- Inherits:
-
Base::Reference
- Object
- Base::Model
- Base::Reference
- Jsapi::Meta::Header::Reference
- Defined in:
- lib/jsapi/meta/header/reference.rb
Overview
Specifies a header reference.
Constant Summary
Constants included from Base::Attributes
Base::Attributes::DEFAULT_ARRAY, Base::Attributes::DEFAULT_HASH
Instance Method Summary collapse
-
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI reference object.
Methods inherited from Base::Reference
component_type, #ref, #reference?, #resolve
Methods inherited from Base::Model
#initialize, #inspect, #merge!, #reference?, #resolve
Methods included from Base::Attributes
Constructor Details
This class inherits a constructor from Jsapi::Meta::Base::Model
Instance Method Details
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI reference object.
9 10 11 |
# File 'lib/jsapi/meta/header/reference.rb', line 9 def to_openapi(*) { '$ref': "#/components/headers/#{ref}" } end |